daft.ImageMode.from_mode_string#

static ImageMode.from_mode_string(mode)#

Create an ImageMode from its string representation.

Parameters

mode – String representation of the mode. This is the same as the enum attribute name, e.g. ImageMode.from_mode_string("RGB") would return ImageMode.RGB.