Gray8 class final Pixel Formats
8-bit grayscale pixel format.
For a singleton instance of this class, and further details, see gray8.
- Inheritance
-
- Object
- PixelFormat<
int, int> - Gray8
Properties
- black → int
-
Black pixel.
no setterinherited
- bytesPerPixel → int
-
Number of bytes required to store a single pixel in memory.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- max → int
-
The maximum value for the pixel format.
no setteroverride
- maxGray → int
-
The maximum value for the gray channel.
no setteroverride
- minGray → int
-
The minimum value for the gray channel.
no setterinherited
- name → String
-
Human-readable name or description of the pixel format.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- white → int
-
White pixel.
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 tothis
format.inherited -
copyWith(
int pixel, {int? gray}) → int -
Returns a copy of the
pixel
.override -
copyWithNormalized(
int pixel, {double? gray}) → int -
Returns a copy of the
pixel
with normalized values.override -
create(
{int? gray}) → int -
Creates a new pixel with the given channel values.
inherited
-
createNormalized(
{double gray = 0.0}) → int -
Creates a new pixel with the given channel value 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 -
getGray(
int pixel) → int -
Returns the gray 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