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

*** ** * ** ***

Common/AllAndroid/JVMNative/C/iOS
- Cmn

  ```
  fun interface TexturePngBytesLookup
  ```

*** ** * ** ***

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

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html?` | `https://developer.android.com/reference/kotlin/androidx/ink/storage/TexturePngBytesLookup#getTexturePngBytes(kotlin.String)(clientTextureId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Low-level callback for retrieving texture PNG bytes to encode into a serialized `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushFamily`. | Cmn |

## Public functions

### getTexturePngBytes

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

```
fun getTexturePngBytes(clientTextureId: String): ByteArray?
```

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

| Parameters |
|---|---|
| `clientTextureId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The texture ID for the texture to encode. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html?` | The PNG bytes of the texture bitmap to encode, or null to not encode any texture. |