Rgb888 class final Pixel Formats

24-bit^1 RGB pixel format with three 8-bit channels.

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

^1: The 24-bit RGB format is a 32-bit format with 8 unused bits.

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 setteroverride
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 setteroverride
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
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
Returns a copy of the pixel.
override
copyWithNormalized(int pixel, {double? red, double? green, double? blue}) int
Returns a copy of the pixel with normalized values.
override
create({int? red, int? green, int? blue}) int
Creates a new pixel with the given channel values.
inherited
createNormalized({double red = 0.0, double green = 0.0, double blue = 0.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.
override
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.
override
getBlue(int pixel) int
Returns the blue channel value of the pixel.
override
getGreen(int pixel) int
Returns the green channel value of the pixel.
override
getRed(int pixel) int
Returns the red channel value of the pixel.
override
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.
override
toString() String
A string representation of this object.
inherited

Operators

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