Pixmap

class Pixmap : Managed

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect open val isClosed: Boolean

Check if underlying resource is closed.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
expect open fun close()

Free underlying native resource, peer is useless afterwards.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun erase(color: Int): Boolean
fun erase(color: Int, subset: IRect): Boolean
Link copied to clipboard
fun extractSubset(subset: Pixmap, area: IRect): Boolean
fun extractSubset(subsetPtr: NativePointer, area: IRect): Boolean
Link copied to clipboard
Link copied to clipboard
fun getAlphaF(x: Int, y: Int): Float
Link copied to clipboard
fun getColor(x: Int, y: Int): Int
Link copied to clipboard
fun readPixels(pixmap: Pixmap?): Boolean
fun readPixels(info: ImageInfo, addr: NativePointer, rowBytes: Int): Boolean
fun readPixels(pixmap: Pixmap, srcX: Int, srcY: Int): Boolean
fun readPixels(info: ImageInfo, addr: NativePointer, rowBytes: Int, srcX: Int, srcY: Int): Boolean
Link copied to clipboard
fun reset()
fun reset(info: ImageInfo, buffer: Data, rowBytes: Int)
fun reset(info: ImageInfo, addr: NativePointer, rowBytes: Int, underlyingMemoryOwner: Managed? = null)
Link copied to clipboard
fun scalePixels(dstPixmap: Pixmap?, samplingMode: SamplingMode): Boolean
Link copied to clipboard
fun setColorSpace(colorSpace: ColorSpace?)
Link copied to clipboard
expect open override fun toString(): String