# 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)

*** ** * ** ***


```
public final class BitmapPixelTestUtil.ImageBuffer
```

<br />

*** ** * ** ***

Represents a `https://developer.android.com/reference/java/nio/ByteBuffer.html` read from an `https://developer.android.com/reference/android/media/Image.html`.

## Summary

| ### Public fields |
|---|---|
| `final https://developer.android.com/reference/java/nio/ByteBuffer.html` | `https://developer.android.com/reference/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#buffer()` |
| `final int` | `https://developer.android.com/reference/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#height()` |
| `final int` | `https://developer.android.com/reference/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#pixelStride()` |
| `final int` | `https://developer.android.com/reference/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#rowStride()` |
| `final int` | `https://developer.android.com/reference/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#width()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/test/utils/BitmapPixelTestUtil.ImageBuffer#ImageBuffer(java.nio.ByteBuffer,int,int,int,int)( https://developer.android.com/reference/java/nio/ByteBuffer.html buffer, int width, int height, int rowStride, int pixelStride )` |

## Public fields

### buffer

```
public final ByteBuffer buffer
```

### height

```
public final int height
```

### pixelStride

```
public final int pixelStride
```

### rowStride

```
public final int rowStride
```

### width

```
public final int width
```

## Public constructors

### ImageBuffer

```
public ImageBuffer(
    ByteBuffer buffer,
    int width,
    int height,
    int rowStride,
    int pixelStride
)
```