installPixels



fun installPixels(info: ImageInfo, pixels: ByteArray?, rowBytes: Int): Boolean

Sets ImageInfo to info following the rules in setImageInfo(), and creates PixelRef containing pixels and rowBytes.

If ImageInfo could not be set, or rowBytes is less than info.getMinRowBytes(): calls reset(), and returns false.

Return

true if ImageInfo is set to info

Parameters

info

contains width, height, SkAlphaType, SkColorType, SkColorSpace

pixels

pixel storage

rowBytes

size of pixel row or larger