Gjsify LogoGjsify Logo

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).

Index

Enumeration Members

A8B8G8R8: number

4 bytes; for alpha, blue, green, red.

A8R8G8B8: number

4 bytes; for alpha, red, green, blue.

A8R8G8B8_PREMULTIPLIED: number

4 bytes; for alpha, red, green, blue. The color values are premultiplied with the alpha value.

B8G8R8: number

3 bytes; for blue, green, red. The data is opaque.

B8G8R8A8: number

4 bytes; for blue, green, red, alpha.

B8G8R8A8_PREMULTIPLIED: number

4 bytes; for blue, green, red, alpha. The color values are premultiplied with the alpha value.

N_FORMATS: number

The number of formats. This value will change as more formats get added, so do not rely on its concrete integer.

R16G16B16: number

3 guint16 values; for red, green, blue. Since: 4.6

R16G16B16A16: number

4 guint16 values; for red, green, blue, alpha. Since: 4.6

R16G16B16A16_FLOAT: number

4 half-float values; for red, green, blue and alpha. Since: 4.6

R16G16B16A16_FLOAT_PREMULTIPLIED: number

4 half-float values; for red, green, blue and alpha. The color values are premultiplied with the alpha value. Since: 4.6

R16G16B16A16_PREMULTIPLIED: number

4 guint16 values; for red, green, blue, alpha. The color values are premultiplied with the alpha value. Since: 4.6

R16G16B16_FLOAT: number

3 half-float values; for red, green, blue. The data is opaque. Since: 4.6

R32G32B32A32_FLOAT: number

4 float values; for red, green, blue and alpha. Since: 4.6

R32G32B32A32_FLOAT_PREMULTIPLIED: number

4 float values; for red, green, blue and alpha. The color values are premultiplied with the alpha value. Since: 4.6

R32G32B32_FLOAT: number
R8G8B8: number

3 bytes; for red, green, blue. The data is opaque.

R8G8B8A8: number

4 bytes; for red, green, blue, alpha.

R8G8B8A8_PREMULTIPLIED: number

4 bytes; for red, green, blue, alpha The color values are premultiplied with the alpha value.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method