CoreGraphicsNativeImage

Constructors

Link copied to clipboard
constructor(bitmap: Bitmap32)

Properties

Link copied to clipboard
val area: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val bpp: Int
Link copied to clipboard
Link copied to clipboard
val data: Any?
Link copied to clipboard
Link copied to clipboard
open override var extra: ExtraType
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val size: SizeInt
Link copied to clipboard
val stride: Int
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
Link copied to clipboard
fun Bitmap.asNinePatchSimple(left: Int, top: Int, right: Int, bottom: Int): NinePatchBmpSlice
Link copied to clipboard
Link copied to clipboard
fun clampWidth(x: Int): Int
Link copied to clipboard
fun clampX(x: Int): Int
Link copied to clipboard
fun clampY(y: Int): Int
Link copied to clipboard
Link copied to clipboard
open fun clone(): Bitmap
Link copied to clipboard
open override fun contentEquals(other: Bitmap): Boolean
Link copied to clipboard
open override fun contentHashCode(): Int
Link copied to clipboard
fun copy(srcX: Int, srcY: Int, dst: Bitmap, dstX: Int, dstY: Int, width: Int, height: Int)
Link copied to clipboard
open fun copyUnchecked(srcX: Int, srcY: Int, dst: Bitmap, dstX: Int, dstY: Int, width: Int, height: Int)
Link copied to clipboard
open override fun createWithThisFormat(width: Int, height: Int): Bitmap
Link copied to clipboard
fun Bitmap.distanceMap(out: DistanceBitmap = DistanceBitmap(width, height), thresold: Double = 0.5): DistanceBitmap
Link copied to clipboard
suspend fun Bitmap.encode(formats: ImageFormat = RegisteredImageFormats, props: ImageEncodingProps = ImageEncodingProps()): ByteArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun flipX(): Bitmap
Link copied to clipboard
open override fun flipY(): Bitmap
Link copied to clipboard
inline fun forEach(sx: Int, sy: Int, width: Int, height: Int, callback: (n: Int, x: Int, y: Int) -> Unit)
Link copied to clipboard
open override fun getContext2d(antialiasing: Boolean): Context2d
Link copied to clipboard
open override fun getInt(x: Int, y: Int): Int
Link copied to clipboard
open fun getRgba(x: Int, y: Int): RGBA
Link copied to clipboard
fun getRgbaClamped(x: Int, y: Int): RGBA
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getRgbaRaw(x: Int, y: Int): RGBA
Link copied to clipboard
fun getRgbaSampled(x: Float, y: Float, count: Int, row: RgbaArray)
Link copied to clipboard
fun inBounds(x: Int, y: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun index(x: Int, y: Int): Int
Link copied to clipboard
fun inside(x: Int, y: Int): Boolean
Link copied to clipboard
open fun lock()
inline fun lock(rect: RectangleInt, doLock: Boolean, block: () -> Unit): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun oriented(orientation: ImageOrientation): Bitmap
Link copied to clipboard
fun Bitmap.putSliceWithBorder(x: Int, y: Int, bmp: BmpSlice, border: Int = 1)
Link copied to clipboard
fun readPixelsUnsafe(x: Int, y: Int, width: Int, height: Int): IntArray
open override fun readPixelsUnsafe(x: Int, y: Int, width: Int, height: Int, out: IntArray, offset: Int)
Link copied to clipboard
fun Bitmap.readPixelsUnsafe(x: Int, y: Int, width: Int, height: Int): IntArray
Link copied to clipboard
fun Bitmap.resized(out: Bitmap, scale: ScaleMode, anchor: Anchor): Bitmap
fun Bitmap.resized(width: Int, height: Int, scale: ScaleMode, anchor: Anchor, native: Boolean = true): Bitmap
Link copied to clipboard
fun Bitmap.resizedUpTo(width: Int, height: Int, native: Boolean = true): Bitmap
Link copied to clipboard
fun rotated(rotation: ImageRotation): Bitmap
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Bitmap.sdf(out: DistanceBitmap = DistanceBitmap(width, height), thresold: Double = 0.5): DistanceBitmap
Link copied to clipboard
open override fun setInt(x: Int, y: Int, color: Int)
Link copied to clipboard
open fun setRgba(x: Int, y: Int, v: RGBA)
open fun setRgba(x: Int, y: Int, v: RGBAPremultiplied)
Link copied to clipboard
open override fun setRgbaRaw(x: Int, y: Int, v: RGBA)
Link copied to clipboard
suspend fun Bitmap.showImageAndWait(kind: Int = 0)
Link copied to clipboard
open override fun swapColumns(x0: Int, x1: Int)
Link copied to clipboard
open override fun swapRows(y0: Int, y1: Int)
Link copied to clipboard
Link copied to clipboard
fun Bitmap.toAwt(out: BufferedImage = BufferedImage( width.coerceAtLeast(1), height.coerceAtLeast(1), if (this.premultiplied) BufferedImage.TYPE_INT_ARGB_PRE else BufferedImage.TYPE_INT_ARGB )): BufferedImage
Link copied to clipboard
open override fun toBMP32(): Bitmap32
Link copied to clipboard
Link copied to clipboard
fun Bitmap.toFloatBMP32(out: FloatBitmap32 = FloatBitmap32(width, height, premultiplied = premultiplied)): FloatBitmap32
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Bitmap.toPaint(transform: Matrix = Matrix.IDENTITY, cycleX: CycleMethod = CycleMethod.NO_CYCLE, cycleY: CycleMethod = CycleMethod.NO_CYCLE, smooth: Boolean = true, units: GradientUnits = GradientUnits.OBJECT_BOUNDING_BOX): BitmapPaint
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun Bitmap.toUIImage(): UIImage
Link copied to clipboard
open fun toUri(): String
Link copied to clipboard
Link copied to clipboard
inline fun Bitmap.trace(): VectorPath
inline fun Bitmap.trace(func: (RGBA) -> Boolean): VectorPath
Link copied to clipboard
open fun transposed(): Bitmap
Link copied to clipboard
Link copied to clipboard
open fun unlock(rect: RectangleInt): Int
Link copied to clipboard
open override fun writePixelsUnsafe(x: Int, y: Int, width: Int, height: Int, out: IntArray, offset: Int)
Link copied to clipboard
suspend fun Bitmap.writeTo(file: VfsFile, formats: ImageFormat = RegisteredImageFormats, props: ImageEncodingProps = ImageEncodingProps()): Long