Abgr8888 class final Pixel Formats

32-bit ABGR pixel format with four 8-bit channels.

For a singleton instance of this class, and further details, see abgr8888.

Inheritance

Properties

black int
Black color with full transparency.
no setterinherited
blue int
Blue color with full transparency.
no setterinherited
bytesPerPixel int
Number of bytes required to store a single pixel in memory.
no setterinherited
cyan int
Cyan color with full transparency.
no setterinherited
green int
Green color with full transparency.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
magenta int
Magenta color with full transparency.
no setterinherited
max int
The maximum value for the pixel format.
no setterinherited
maxAlpha int
The maximum value for the alpha channel.
no setterinherited
maxBlue int
The maximum value for the blue channel.
no setterinherited
maxGreen int
The maximum value for the green channel.
no setterinherited
maxRed int
The maximum value for the red channel.
no setterinherited
minAlpha int
The minimum value for the alpha channel.
no setterinherited
minBlue int
The minimum value for the blue channel.
no setterinherited
minGreen int
The minimum value for the green channel.
no setterinherited
minRed int
The minimum value for the red channel.
no setterinherited
name String
Human-readable name or description of the pixel format.
no setteroverride
red int
Red color with full transparency.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
white int
White color with full transparency.
no setterinherited
yellow int
Yellow color with full transparency.
no setterinherited
zero int
The zero, or minimum, value for the pixel format.
no setterinherited

Methods

clamp(int pixel) int
Clamps a pixel to the valid range of values for the pixel format.
inherited
compare(int a, int b) double
Compares two pixels in the pixel format.
inherited
convert<R>(R pixel, {required PixelFormat<R, void> from}) int
Converts a pixel from one another format to this format.
inherited
copyWith(int pixel, {int? red, int? green, int? blue, int? alpha}) int
Returns a copy of the pixel.
inherited
copyWithNormalized(int pixel, {double? red, double? green, double? blue, double? alpha}) int
Returns a copy of the pixel with normalized values.
inherited
create({int? red, int? green, int? blue, int? alpha}) int
Creates a new pixel with the given channel values.
inherited
createNormalized({double red = 0.0, double green = 0.0, double blue = 0.0, double alpha = 1.0}) int
Creates a new pixel with the given channel values normalized to the range [0.0, 1.0].
inherited
describe(int pixel) String
Returns a human-readable description of the pixel.
inherited
distance(int a, int b) double
Returns the distance between two pixels in the pixel format.
inherited
fromAbgr8888(int pixel) int
Converts a pixel in the abgr8888 pixel format to this pixel format.
override
fromFloatRgba(Float32x4 pixel) int
Converts a pixel in the floatRgba pixel format to this pixel format.
inherited
getAlpha(int pixel) int
Returns the alpha channel value of the pixel.
inherited
getBlue(int pixel) int
Returns the blue channel value of the pixel.
inherited
getGreen(int pixel) int
Returns the green channel value of the pixel.
inherited
getRed(int pixel) int
Returns the red channel value of the pixel.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAbgr8888(int pixel) int
Converts a pixel in this pixel format to the abgr8888 pixel format.
override
toFloatRgba(int pixel) Float32x4
Converts a pixel in this pixel format to the floatRgba pixel format.
inherited
toString() String
A string representation of this object.
inherited

Operators

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