daft.ImageMode#
- class ImageMode#
Supported image modes for Daft’s image type.
Warning
Currently, only the 8-bit modes (L, LA, RGB, RGBA) can be stored in a DataFrame. If your binary image data includes other modes, use the
mode
argument inimage.decode
to convert the images to a supported mode.L - 8-bit grayscaleLA - 8-bit grayscale + alphaRGB - 8-bit RGBRGBA - 8-bit RGB + alphaL16 - 16-bit grayscaleLA16 - 16-bit grayscale + alphaRGB16 - 16-bit RGBRGBA16 - 16-bit RGB + alphaRGB32F - 32-bit floating RGBRGBA32F - 32-bit floating RGB + alpha- __init__()#
Methods
__init__
()from_mode_string
(mode)Create an ImageMode from its string representation.
Attributes
L
L16
LA
LA16
RGB
RGB16
RGB32F
RGBA
RGBA16
RGBA32F