# BitmapPixelTestUtil.ImageBuffer

# BitmapPixelTestUtil.ImageBuffer

Artifact:[androidx.media3:media3-test-utils](https://developer.android.com/jetpack/androidx/releases/media3)  
[View Source](https://cs.android.com/search?q=file:androidx/media3/test/utils/BitmapPixelTestUtil.java+class:androidx.media3.test.utils.BitmapPixelTestUtil.ImageBuffer)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer "View this page in Java")

<br />

```
class BitmapPixelTestUtil.ImageBuffer
```

<br />

*** ** * ** ***

Represents a[ByteBuffer](https://developer.android.com/reference/java/nio/ByteBuffer.html)read from an[Image](https://developer.android.com/reference/android/media/Image.html).

## Summary

|                                                                                                                                                                                                                                                                                                                  ### Public constructors                                                                                                                                                                                                                                                                                                                   |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ImageBuffer](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#ImageBuffer(java.nio.ByteBuffer,int,int,int,int))`(` ` buffer: `[ByteBuffer](https://developer.android.com/reference/java/nio/ByteBuffer.html)`!,` ` width: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` height: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` rowStride: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` pixelStride: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) `)` |

|                               ### Public properties                               |
|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| [ByteBuffer](https://developer.android.com/reference/java/nio/ByteBuffer.html)`!` | [buffer](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#buffer())           |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | [height](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#height())           |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | [pixelStride](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#pixelStride()) |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | [rowStride](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#rowStride())     |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | [width](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#width())             |

## Public constructors

### ImageBuffer

```
ImageBuffer(
    buffer: ByteBuffer!,
    width: Int,
    height: Int,
    rowStride: Int,
    pixelStride: Int
)
```  

## Public properties

### buffer

```
val buffer: ByteBuffer!
```  

### height

```
val height: Int
```  

### pixelStride

```
val pixelStride: Int
```  

### rowStride

```
val rowStride: Int
```  

### width

```
val width: Int
```