decode_image, then convert to format if the file holds something else.
decode_image_as :: (
data: [] u8,
format: Pixel_Format,
max_pixels: s64 = DEFAULT_MAX_PIXELS
) -> (image: Image, ok: bool, error: string)
decode_image, then convert to format if the file holds something else.
Parameters
- data: [] u8
- format: Pixel_Format
- max_pixels: s64
Returns
- image: Image
- ok: bool
- error: string