Image
Properties
Link copied to clipboard
Link copied to clipboard
Returns number of bytes per pixel required by ColorType. Returns zero if colorType is ColorType.UNKNOWN.
Link copied to clipboard
Link copied to clipboard
Returns bit shift converting row bytes to row pixels. Returns zero for ColorType.UNKNOWN.
Functions
Link copied to clipboard
Encodes Image pixels, returning result as Data. Returns existing encoded data if present; otherwise, Image is encoded with EncodedImageFormat.PNG.
Link copied to clipboard
fun makeShader(tmx: FilterTileMode = FilterTileMode.CLAMP, tmy: FilterTileMode = FilterTileMode.CLAMP, sampling: SamplingMode = SamplingMode.DEFAULT, localMatrix: Matrix33? = null): Shader
Link copied to clipboard
If pixel address is available, return Pixmap. If pixel address is not available, return null.
Link copied to clipboard
Copies Rect of pixels from Image to Bitmap. Copy starts at offset (srcX, srcY), and does not exceed Image (getWidth(), getHeight()).
Link copied to clipboard