MemoryFormat#

Added in version 2.0.

class MemoryFormat#

Memory format

Methods#

class MemoryFormat
has_alpha() bool#

Whether a memory format has an alpha channel

Added in version 2.0.

is_premultiplied() bool#

Whether a memory format has an alpha channel and the color values are premultiplied with the alpha value

Added in version 2.0.

Fields#

class MemoryFormat
A8B8G8R8#

8-bit ABGR

A8R8G8B8#

8-bit AGBR

A8R8G8B8_PREMULTIPLIED#

8-bit ARGB premultiplied

B8G8R8#

8-bit BGR

B8G8R8A8#

8-bit RGBA

B8G8R8A8_PREMULTIPLIED#

8-bit RGRA premultiplied

G16#

16-bit gray

G16A16#

16-bit gray with alpha

G16A16_PREMULTIPLIED#

16-bit gray with alpha premultiplied

G8#

8-bit gray

G8A8#

8-bit gray with alpha

G8A8_PREMULTIPLIED#

8-bit gray with alpha premultiplied

R16G16B16#

16-bit RGB

R16G16B16A16#

16-bit RGBA

R16G16B16A16_FLOAT#

16-bit float RGBA

R16G16B16A16_PREMULTIPLIED#

16-bit RGBA premultiplied

R16G16B16_FLOAT#

16-bit float RGB

R32G32B32A32_FLOAT#

16-bit float RGBA

R32G32B32A32_FLOAT_PREMULTIPLIED#

32-bit float RGBA premultiplied

R32G32B32_FLOAT#

32-bit float RGB

R8G8B8#

8-bit RGB

R8G8B8A8#

8-bit RGBA

R8G8B8A8_PREMULTIPLIED#

8-bit RGBA premultiplied