getBytes

actual fun getBytes(): ByteArray

Returns this image as a ByteArray encoded as PNG. Recommended to use writeImage.

See also


actual fun getBytes(format: String): ByteArray

Returns this image as a ByteArray encoded as the specified format. Recommended to use writeImage.

See also

expect fun getBytes(): ByteArray

Returns this image as a ByteArray encoded as PNG.


expect fun getBytes(format: String): ByteArray

Returns this image as a ByteArray encoded as the specified format (e.g. PNG, JPG, BMP, ...).

actual fun getBytes(): ByteArray

Returns this image as a ByteArray encoded as PNG. Usually recommended to use writeImage instead :)

See also


actual fun getBytes(format: String): ByteArray

Returns this image as a ByteArray encoded as the specified format. Usually recommended to use writeImage instead :)

See also