Image module

has_alpha

procedureextensionsince 0.28.0Source

Whether the format has an alpha channel.

Example↗
assert(has_alpha(.RGBA8));
assert(!has_alpha(.RGB8));
has_alpha :: (format: Pixel_Format) -> bool

Parameters

format: Pixel_Format

Returns

bool

See also