Skip to content

IPalette

Nick Ryzhy edited this page Apr 4, 2016 · 2 revisions

The base interface for creating color palletes to be used in PNG8Encoder.

Name Value
Package by.blooddy.crypto.image.palette
Name interface IPalette
Implementors MedianCutPalette, LevelsPalette

Properties

Name Description
transparent:Boolean Defines whether the palette supports per-pixel transparency.

Methods

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.

Hashsum

Checksum

Image

Serialization

Clone this wiki locally