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
4 bytes; for blue, green, red, alpha. The color values are premultiplied with the alpha value.
4 bytes; for alpha, red, green, blue. The color values are premultiplied with the alpha value.
4 bytes; for red, green, blue, alpha The color values are premultiplied with the alpha value.
4 guint16 values; for red, green, blue, alpha. The color values are premultiplied with the alpha value.
4 guint16 values; for red, green, blue, alpha.
3 half-float values; for red, green, blue. The data is opaque.
4 half-float values; for red, green, blue and alpha. The color values are premultiplied with the alpha value.
4 half-float values; for red, green, blue and alpha.
3 float values; for red, green, blue.
4 float values; for red, green, blue and alpha. The color values are premultiplied with the alpha value.
4 float values; for red, green, blue and alpha.
2 bytes; for grayscale, alpha. The color values are premultiplied with the alpha value.
2 guint16 values; for grayscale, alpha. The color values are premultiplied with the alpha value.
4 bytes; for alpha, blue, green, red, The color values are premultiplied with the alpha value.
Functions
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.)
Returns an array containing the constants of this enum type, in the order they're declared.