-
Notifications
You must be signed in to change notification settings - Fork 26
LevelsPalette
Nick Ryzhy edited this page Apr 4, 2016
·
1 revision
This class provides a palette that can be used in PNG8Encoder.
Name | Value |
---|---|
Package | by.blooddy.crypto.image.palette |
Name | class LevelsPalette |
Implements | IPalette |
Name | Description |
---|---|
LevelsPalette(rLevel:uint=8, gLevel:uint=8, bLevel:uint=4, transparent:Boolean=false) |
Creates a LevelsPalette object. |
Name | Description |
---|---|
transparent:Boolean |
Defines whether the palette supports per-pixel transparency. |
Name | Description |
---|---|
getList():Vector.<uint> |
Returns the list of the colors used in the palette. |
getIndexByColor(color:uint):uint |
Returns the index of the color inside the palette. It is possible that the same index will be returned for different color values. |