API Reference: IHasImageInfo
IHasImageInfo is an interface implemented by classes that have an associated ImageInfo, such as Surface, Image, Bitmap, and Pixmap.
Methods
getImageInfo(): Returns the fullImageInfoobject.getWidth(): Convenience forgetImageInfo().getWidth().getHeight(): Convenience forgetImageInfo().getHeight().getColorInfo(): Returns theColorInfo(ColorType, AlphaType, ColorSpace).getColorType(): Returns theColorType.getAlphaType(): Returns theColorAlphaType.getColorSpace(): Returns theColorSpace.getBytesPerPixel(): Number of bytes required per pixel.isEmpty(): Returnstrueif width or height is zero.isOpaque(): Returnstrueif all pixels are guaranteed to be opaque.