PaletteInt16 class

Inheritance

Constructors

PaletteInt16(int numColors, int numChannels)
PaletteInt16.from(PaletteInt16 other)

Properties

buffer ByteBuffer
The byte buffer storage of the palette data.
no setteroverride
data Int16List
final
format Format
The format of the color data.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
lengthInBytes int
The size of the palette data in bytes.
no setteroverride
maxChannelValue num
no setteroverride
numChannels int
The number of channels per color.
finalinherited
numColors int
The number of colors stored in the palette.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() PaletteInt16
Create a copy of the Palette.
override
get(int index, int channel) num
Get the the value of a specific channel of the palette entry at index. If the palette has fewer colors than index or fewer channels than channel, 0 will be returned.
override
getAlpha(int index) num
Get the alpha channel of the palette entry at index. If the palette has fewer colors or channels, 0 will be returned.
override
getBlue(int index) num
Get the blue channel of the palette entry at index. If the palette has fewer colors or channels, 0 will be returned.
override
getGreen(int index) num
Get the green channel of the palette entry at index. If the palette has fewer colors or channels, 0 will be returned.
override
getRed(int index) num
Get the red channel of the palette entry at index. If the palette has fewer colors or channels, 0 will be returned.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(int index, int channel, num value) → void
Set a specific channel value of the palette entry at index. If the palette has fewer channels than channel, the value will be ignored.
override
setAlpha(int index, num value) → void
Set the alpha channel of the palette entry at index. If the palette has fewer colors or channels, it will be ignored.
override
setBlue(int index, num value) → void
Set the blue channel of the palette entry at index. If the palette has fewer colors or channels, it will be ignored.
override
setGreen(int index, num value) → void
Set the green channel of the palette entry at index. If the palette has fewer colors or channels, it will be ignored.
override
setRed(int index, num value) → void
Set the red channel of the palette entry at index. If the palette has fewer colors or channels, it will be ignored.
override
setRgb(int index, num r, num g, num b) → void
Set the RGB color of a palette entry at index. If the palette has fewer channels than are set, the unsupported channels will be ignored.
override
setRgba(int index, num r, num g, num b, num a) → void
Set the RGBA color of a palette entry at index. If the palette has fewer channels than are set, the unsupported channels will be ignored.
override
toString() String
A string representation of this object.
inherited
toUint8List() Uint8List
A Uint8List view of the palette buffer storage.
inherited

Operators

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