-
Cast constructor, converting any binary integer to a
MemoryFormat
.Declaration
Swift
@inlinable init!<I>(_ raw: I) where I : BinaryInteger
Parameters
raw
The raw integer value to initialise the enum from
-
4 bytes; for blue, green, red, alpha. The color values are premultiplied with the alpha value.
Declaration
Swift
static let b8g8r8a8Premultiplied: GdkMemoryFormat
-
4 bytes; for alpha, red, green, blue. The color values are premultiplied with the alpha value.
Declaration
Swift
static let a8r8g8b8Premultiplied: GdkMemoryFormat
-
4 bytes; for red, green, blue, alpha The color values are premultiplied with the alpha value.
Declaration
Swift
static let r8g8b8a8Premultiplied: GdkMemoryFormat
-
4 bytes; for blue, green, red, alpha.
Declaration
Swift
static let b8g8r8a8: GdkMemoryFormat
-
4 bytes; for alpha, red, green, blue.
Declaration
Swift
static let a8r8g8b8: GdkMemoryFormat
-
4 bytes; for red, green, blue, alpha.
Declaration
Swift
static let r8g8b8a8: GdkMemoryFormat
-
4 bytes; for alpha, blue, green, red.
Declaration
Swift
static let a8b8g8r8: GdkMemoryFormat
-
3 bytes; for red, green, blue. The data is opaque.
Declaration
Swift
static let r8g8b8: GdkMemoryFormat
-
3 bytes; for blue, green, red. The data is opaque.
Declaration
Swift
static let b8g8r8: GdkMemoryFormat
-
The number of formats. This value will change as more formats get added, so do not rely on its concrete integer.
Declaration
Swift
static let nFormats: GdkMemoryFormat