PixelFormat enum

The format of pixel data given to decodeImageFromPixels.

Inheritance

Constructors

PixelFormat()
const

Values

rgba8888 → const PixelFormat

Each pixel is 32 bits, with the highest 8 bits encoding red, the next 8 bits encoding green, the next 8 bits encoding blue, and the lowest 8 bits encoding alpha. Premultiplied alpha is used.

bgra8888 → const PixelFormat

Each pixel is 32 bits, with the highest 8 bits encoding blue, the next 8 bits encoding green, the next 8 bits encoding red, and the lowest 8 bits encoding alpha. Premultiplied alpha is used.

rgbaFloat32 → const PixelFormat

Each pixel is 128 bits, where each color component is a 32 bit float that is normalized across the sRGB gamut. The first float is the red component, followed by: green, blue and alpha. Premultiplied alpha isn't used, matching ImageByteFormat.rawExtendedRgba128.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<PixelFormat>
A constant List of the values in this enum, in order of their declaration.