Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
class Bitmap16(val width: Int, val height: Int, val data: ShortArray = ShortArray(width * height), val format: ColorFormat = RGBA_4444, premultiplied: Boolean = false) : Bitmap
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class DistanceBitmap(val width: Int, val height: Int, val d: FloatArray = FloatArray(width * height), val px: IntArray = IntArray(width * height), val py: IntArray = IntArray(width * height))
Link copied to clipboard
class FloatBitmap32(val width: Int, val height: Int, val data: FloatArray = FloatArray(width * height * 4), premultiplied: Boolean = false) : Bitmap
Link copied to clipboard
interface ForcedTexId
Link copied to clipboard
abstract class ForcedTexNativeImage(val width: Int, val height: Int, premultiplied: Boolean = true) : NativeImage, ForcedTexId
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class NinePatchBmpSlice(val content: BmpSlice, val info: NinePatchInfo, val bmpSlice: BmpSlice = content)
Link copied to clipboard
Link copied to clipboard
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun BmpSlice.asNinePatchSimpleRatio(left: Double, top: Double, right: Double, bottom: Double): NinePatchBmpSlice
fun BmpSlice.asNinePatchSimpleRatio(left: Float, top: Float, right: Float, bottom: Float): NinePatchBmpSlice
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun FloatArray2.convertRange(minSrc: Float, maxSrc: Float, minDst: Float = 0.0f, maxDst: Float = 1.0f)
Link copied to clipboard
Link copied to clipboard
fun Bitmap.distanceMap(out: DistanceBitmap = DistanceBitmap(width, height), thresold: Double = 0.5): DistanceBitmap
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Extract pixels in the same Bitmap format as the RectSlice.container, without having into account RectSlice.padding nor RectSlice.orientation
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun NativeImage(width: Int, height: Int, pixels: IntArray, premultiplied: Boolean? = null): NativeImage
fun NativeImage(width: Int, height: Int, d: Drawable, scaleX: Double = 1.0, scaleY: Double = scaleX): NativeImage
Link copied to clipboard
fun NativeImageContext2d(width: Int, height: Int, antialiased: Boolean = true, block: Context2d.() -> Unit): NativeImage
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun VfsFile.readNinePatch(props: ImageDecodingProps = ImageDecodingProps.DEFAULT): NinePatchBmpSlice
Link copied to clipboard
fun BmpSlice.readPixels(x: Int, y: Int, width: Int, height: Int, out: RgbaArray = RgbaArray(width * height), offset: Int = 0): RgbaArray
Reads pixels in region without having into account RectSlice.orientation or RectSlice.padding
Link copied to clipboard
fun BmpSlice.readPixelsUnsafe(x: Int, y: Int, width: Int, height: Int, out: IntArray = IntArray(width * height), offset: Int = 0): IntArray
Sets a pixel in RGBA from the slice in x and y with the color RectSlice.value WITHOUT having into account RectSlice.orientation and RectSlice.padding
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
Link copied to clipboard
Link copied to clipboard
fun <T : Bitmap> T.slice(bounds: RectangleInt = RectangleInt(0, 0, width, height), name: String? = null, orientation: ImageOrientation = ImageOrientation.ROTATE_0, padding: MarginInt = MarginInt.ZERO): RectSlice<T>
fun <T : SizeableInt> SliceCoordsWithBase<T>.slice(bounds: RectangleInt = RectangleInt(0, 0, width, height), name: String? = null, orientation: ImageOrientation = ImageOrientation.ROTATE_0, padding: MarginInt = MarginInt.ZERO): RectSlice<T>
Link copied to clipboard
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