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#

The type of the None singleton.

A8R8G8B8#

The type of the None singleton.

A8R8G8B8_PREMULTIPLIED#

The type of the None singleton.

B8G8R8#

The type of the None singleton.

B8G8R8A8#

The type of the None singleton.

B8G8R8A8_PREMULTIPLIED#

The type of the None singleton.

G16#

The type of the None singleton.

G16A16#

The type of the None singleton.

G16A16_PREMULTIPLIED#

The type of the None singleton.

G8#

The type of the None singleton.

G8A8#

The type of the None singleton.

G8A8_PREMULTIPLIED#

The type of the None singleton.

R16G16B16#

The type of the None singleton.

R16G16B16A16#

The type of the None singleton.

R16G16B16A16_FLOAT#

The type of the None singleton.

R16G16B16A16_PREMULTIPLIED#

The type of the None singleton.

R16G16B16_FLOAT#

The type of the None singleton.

R32G32B32A32_FLOAT#

The type of the None singleton.

R32G32B32A32_FLOAT_PREMULTIPLIED#

The type of the None singleton.

R32G32B32_FLOAT#

The type of the None singleton.

R8G8B8#

The type of the None singleton.

R8G8B8A8#

The type of the None singleton.

R8G8B8A8_PREMULTIPLIED#

The type of the None singleton.