Package-level declarations

Types

Link copied to clipboard
class AndroidCoreImage(val bitmap: Bitmap) : CoreImage
Link copied to clipboard
class AwtCoreImage(val native: BufferedImage) : CoreImage
Link copied to clipboard
interface CoreImage

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

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

A 32-bit image representation.

Link copied to clipboard
inline class CoreImage32Color(val value: Int)

32-bit RGBA color format. Used in CoreImage32

Link copied to clipboard
inline class CoreImageFormat(val name: String)

Image format: PNG, JPEG, WEBP, AVIF, etc.

Link copied to clipboard

Provides image encoding/decoding capabilities.

Link copied to clipboard
data class CoreImageInfo(val width: Int, val height: Int, val bpp: Int = 32, val format: CoreImageFormat? = null, val premultiplied: Boolean = true)

Provides information about an image.

Link copied to clipboard
Link copied to clipboard

Properties

Functions

Link copied to clipboard

Decodes a data ByteArray into a CoreImage

Link copied to clipboard
Link copied to clipboard
suspend fun CoreImage.Companion.encode(image: CoreImage, format: CoreImageFormat, level: Double): ByteArray

Decodes a data ByteArray into a CoreImage

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.

Gets the CoreImageInfo of a data ByteArray. Potentially without decoding the pixels.

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