CoreImage32

class CoreImage32(val width: Int, val height: Int, val data: IntArray = IntArray(width * height), val premultiplied: Boolean = true) : CoreImage

A 32-bit image representation.

data is in CoreImage32Color format

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, data: IntArray = IntArray(width * height), premultiplied: Boolean = true)

Properties

Link copied to clipboard
open override val bpp: Int = 32

Bits per pixel

Link copied to clipboard
Link copied to clipboard
open override val height: Int

height of the image

Link copied to clipboard
open override val native: IntArray

Native object. Like IntArray for CoreImage32 or BufferedImage

Link copied to clipboard
open override val premultiplied: Boolean

Determine if the pixels are premultiplied by its alpha

Link copied to clipboard
open override val width: Int

width of the image

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun CoreImage.encodeBytes(format: CoreImageFormat, level: Double = 1.0): ByteArray

Encodes a CoreImage into a ByteArray in the specified format (PNG, JPEG, etc.)

Link copied to clipboard

Provides information about an image.

Link copied to clipboard
Link copied to clipboard
open override fun to32(): CoreImage32

Returns a CoreImage32 image

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun CoreImage32.toCGImage(): CGImageRef?