copyPixels

abstract fun copyPixels(): ByteArray

Returns a copy of the full pixel buffer, including per-row padding.


abstract fun copyPixels(destination: ByteArray, destinationOffset: Int = 0)

Copies the full pixel buffer into destination starting at destinationOffset. The destination must have enough remaining capacity for the whole buffer.