# SpatialAnnotationImageFormat

Artifact: [androidx.xr.arcore:arcore](https://developer.android.com/jetpack/androidx/releases/xr-arcore) [View Source](https://cs.android.com/search?q=file:androidx/xr/arcore/SpatialAnnotationImageFormat.kt+class:androidx.xr.arcore.SpatialAnnotationImageFormat) Added in [1.1.0-alpha01](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.1.0-alpha01)

*** ** * ** ***


```
@ExperimentalSpatialAnnotationsApi
public final class SpatialAnnotationImageFormat
```

<br />

*** ** * ** ***

Enumeration of supported input camera image formats. Defines the native memory layout of the ByteBuffer.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotationImageFormat` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotationImageFormat#GRAYSCALE()` 8-bit grayscale image format. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotationImageFormat` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotationImageFormat#RGBA()` 32-bit RGBA image format. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotationImageFormat#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotationImageFormat#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/arcore/SpatialAnnotationImageFormat#toString()()` |

## Public fields

### GRAYSCALE

```
public static final @NonNull SpatialAnnotationImageFormat GRAYSCALE
```

8-bit grayscale image format.

### RGBA

```
public static final @NonNull SpatialAnnotationImageFormat RGBA
```

32-bit RGBA image format.

## Public methods

### equals

```
public boolean equals(Object other)
```

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```