getBytes

actual open fun getBytes(): ByteArray(source)

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

See also


actual open fun getBytes(format: String): ByteArray(source)

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

See also

expect fun getBytes(): ByteArray(source)

Returns this image as a ByteArray encoded as PNG.


expect fun getBytes(format: String): ByteArray(source)

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

actual open fun getBytes(): ByteArray(source)

Returns this image as a ByteArray encoded as PNG.


actual open fun getBytes(format: String): ByteArray(source)

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

actual open fun getBytes(): ByteArray(source)

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

See also


actual open fun getBytes(format: String): ByteArray(source)

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

See also