# 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
class SpatialAnnotationImageFormat
```

<br />

*** ** * ** ***

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

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotationImageFormat` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotationImageFormat#GRAYSCALE()` 8-bit grayscale image format. |
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotationImageFormat` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotationImageFormat#RGBA()` 32-bit RGBA image format. |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotationImageFormat#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotationImageFormat#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/SpatialAnnotationImageFormat#toString()()` |

## Public companion properties

### GRAYSCALE

```
val GRAYSCALE: SpatialAnnotationImageFormat
```

8-bit grayscale image format.

### RGBA

```
val RGBA: SpatialAnnotationImageFormat
```

32-bit RGBA image format.

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```