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

Entries

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

3 guint16 values; for red, green, blue.

Link copied to clipboard

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

Link copied to clipboard

4 guint16 values; for red, green, blue, alpha.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

3 float values; for red, green, blue.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

2 bytes; for grayscale, alpha. The color values are premultiplied with the alpha value.

Link copied to clipboard

2 bytes; for grayscale, alpha.

Link copied to clipboard

One byte; for grayscale. The data is opaque.

Link copied to clipboard

2 guint16 values; for grayscale, alpha. The color values are premultiplied with the alpha value.

Link copied to clipboard

2 guint16 values; for grayscale, alpha.

Link copied to clipboard

One guint16 value; for grayscale. The data is opaque.

Link copied to clipboard

One byte; for alpha.

Link copied to clipboard

One guint16 value; for alpha.

Link copied to clipboard

One half-float value; for alpha.

Link copied to clipboard

One float value; for alpha.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val nativeValue: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.