Skip to main content

Module image

Module image 

Source
Expand description

Plain in-memory images and PNG input / output.

Structs§

GrayImage
One 8-bit channel (masks).
RgbaImage
RGBA, 8 bits per channel, straight (not premultiplied) alpha.

Functions§

decode_png
Decode any 8-bit PNG (gray, gray+alpha, RGB, RGBA, palette) to RGBA.
luma
ITU-R BT.601 luma, as used for gray layers.