Function cocoa_image::decode_image_as_rgba_premultiplied [] [src]

pub fn decode_image_as_rgba_premultiplied(
    _file_data: &[u8]
) -> Result<ImgVec<RGBA8>, Error>

On macOS returns an RGBA 8-bit bitmap in sRGB color space with premultiplied alpha.

The input is an encoded file (PNG, JPEG, etc.)

See ImgRef for instructions how to use the returned bitmap.