make Raster
Creates Image from pixels.
Image is returned if pixels are valid. Valid Pixmap parameters include:
dimensions are greater than zero;
each dimension fits in 29 bits;
ColorType and AlphaType are valid, and ColorType is not ColorType.UNKNOWN;
row bytes are large enough to hold one row of pixels;
pixel address is not null.
Return
Image
Parameters
image Info
ImageInfo
bytes
pixels array
row Bytes
how many bytes in a row
See also
Creates Image from pixels.
Image is returned if pixels are valid. Valid Pixmap parameters include:
dimensions are greater than zero;
each dimension fits in 29 bits;
ColorType and AlphaType are valid, and ColorType is not ColorType.UNKNOWN;
row bytes are large enough to hold one row of pixels;
pixel address is not null.
Return
Image
Parameters
image Info
ImageInfo
data
pixels array
row Bytes
how many bytes in a row