CoreImage

interface CoreImage

An image representation that can be used to encode/decode images in different formats.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val bpp: Int

Bits per pixel

Link copied to clipboard
abstract val height: Int

height of the image

Link copied to clipboard
abstract val native: Any

Native object. Like IntArray for CoreImage32 or BufferedImage

Link copied to clipboard
abstract val premultiplied: Boolean

Determine if the pixels are premultiplied by its alpha

Link copied to clipboard
abstract val width: Int

width of the image

Functions

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
abstract fun to32(): CoreImage32

Returns a CoreImage32 image

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard