IHasImageInfo

interface IHasImageInfo

Inheritors

Properties

Link copied to clipboard
Link copied to clipboard
open val bytesPerPixel: Int

Returns number of bytes per pixel required by ColorType. Returns zero if colorType is ColorType.UNKNOWN.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val height: Int

Returns pixel row count.

Link copied to clipboard
abstract val imageInfo: ImageInfo
Link copied to clipboard
open val isEmpty: Boolean

Returns true if either getWidth() or getHeight() are zero.

Link copied to clipboard
open val isOpaque: Boolean

Returns true if ColorAlphaType is set to hint that all pixels are opaque; their alpha value is implicitly or explicitly 1.0. If true, and all pixels are not opaque, Skia may draw incorrectly.

Link copied to clipboard
open val shiftPerPixel: Int

Returns bit shift converting row bytes to row pixels. Returns zero for ColorType.UNKNOWN.

Link copied to clipboard
open val width: Int

Returns pixel count in each row. Should be equal or less than getRowBytes() / getImageInfo().getBytesPerPixel().