Function cocoa_image::decode_image_as_rgba_premultiplied
source · pub fn decode_image_as_rgba_premultiplied(
image_data: &[u8]
) -> Result<ImgVec<RGBA8>, Error>
Expand description
Returns an RGBA 8-bit bitmap in sRGB color space with premultiplied alpha.
See ImgRef
for instructions how to use the returned bitmap.