# TexturePngBytesLookup

Artifact: [androidx.ink:ink-storage](https://developer.android.com/jetpack/androidx/releases/ink) [View Source](https://cs.android.com/search?q=file:androidx/ink/storage/BrushFamilyExtensions.kt+class:androidx.ink.storage.TexturePngBytesLookup) Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

*** ** * ** ***


```
public fun interface TexturePngBytesLookup
```

<br />

*** ** * ** ***

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/ink/storage/TexturePngBytesLookup#getTexturePngBytes(kotlin.String)` |   |

## Summary

| ### Public methods |
|---|---|
| `abstract byte[]` | `https://developer.android.com/reference/androidx/ink/storage/TexturePngBytesLookup#getTexturePngBytes(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html clientTextureId)` Low-level callback for retrieving texture PNG bytes to encode into a serialized `https://developer.android.com/reference/androidx/ink/brush/BrushFamily`. |

## Public methods

### getTexturePngBytes

Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
abstract byte[] getTexturePngBytes(@NonNull String clientTextureId)
```

Low-level callback for retrieving texture PNG bytes to encode into a serialized `https://developer.android.com/reference/androidx/ink/brush/BrushFamily`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html clientTextureId` | The texture ID for the texture to encode. |

| Returns |
|---|---|
| `byte[]` | The PNG bytes of the texture bitmap to encode, or null to not encode any texture. |