MemoryFormat#

class MemoryFormat#

GdkMemoryFormat describes formats that image data can have in memory.

It describes formats by listing the contents of the memory passed to it. So GDK_MEMORY_A8R8G8B8 will be 1 byte (8 bits) of alpha, followed by a byte each of red, green and blue. It is not endian-dependent, so CAIRO_FORMAT_ARGB32 is represented by different GdkMemoryFormats on architectures with different endiannesses.

Its naming is modelled after VkFormat for details).

Fields#

class MemoryFormat
A16#

The type of the None singleton.

Added in version 4.12.

A16_FLOAT#

The type of the None singleton.

Added in version 4.12.

A32_FLOAT#

The type of the None singleton.

Added in version 4.12.

A8#

The type of the None singleton.

Added in version 4.12.

A8B8G8R8#

The type of the None singleton.

A8B8G8R8_PREMULTIPLIED#

The type of the None singleton.

Added in version 4.14.

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.

B8G8R8X8#

The type of the None singleton.

Added in version 4.14.

G16#

The type of the None singleton.

Added in version 4.12.

G16A16#

The type of the None singleton.

Added in version 4.12.

G16A16_PREMULTIPLIED#

The type of the None singleton.

Added in version 4.12.

G8#

The type of the None singleton.

Added in version 4.12.

G8A8#

The type of the None singleton.

Added in version 4.12.

G8A8_PREMULTIPLIED#

The type of the None singleton.

Added in version 4.12.

N_FORMATS#

The type of the None singleton.

R16G16B16#

The type of the None singleton.

Added in version 4.6.

R16G16B16A16#

The type of the None singleton.

Added in version 4.6.

R16G16B16A16_FLOAT#

The type of the None singleton.

Added in version 4.6.

R16G16B16A16_FLOAT_PREMULTIPLIED#

The type of the None singleton.

Added in version 4.6.

R16G16B16A16_PREMULTIPLIED#

The type of the None singleton.

Added in version 4.6.

R16G16B16_FLOAT#

The type of the None singleton.

Added in version 4.6.

R32G32B32A32_FLOAT#

The type of the None singleton.

Added in version 4.6.

R32G32B32A32_FLOAT_PREMULTIPLIED#

The type of the None singleton.

Added in version 4.6.

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.

R8G8B8X8#

The type of the None singleton.

Added in version 4.14.

X8B8G8R8#

The type of the None singleton.

Added in version 4.14.

X8R8G8B8#

The type of the None singleton.

Added in version 4.14.