toInt8Array

expect fun toInt8Array(): ByteArray

Converts the image into a signed 8-bit integer array (ByteArray).

Each pixel channel (0-255) is cast directly to a signed Byte. This is commonly used for quantized models.

Return

A byte array containing the image pixel data in RGB order.