Class PortablePalette
java.lang.Object
com.thecoderscorner.menu.domain.util.PortablePalette
Represents a palette of Portable Colors of a given bit depth. It also contains a flag as to if the alpha portion
of the portable color is valid or not.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPortablePalette(PortableColor[] colorArray, PortablePalette.PaletteMode paletteMode) PortablePalette(PortableColor[] colorArray, PortablePalette.PaletteMode paletteMode, boolean alphaInUse) -
Method Summary
Modifier and TypeMethodDescriptionintintgetClosestColorIndex(PortableColor col, double v, boolean applyAlpha) getColorAt(int index) intbooleanvoidsetColorAt(int index, PortableColor newColor)
-
Constructor Details
-
Method Details
-
getColorArray
-
getColorAt
-
getPaletteMode
-
getBitsPerPixel
public int getBitsPerPixel() -
isAlphaInUse
public boolean isAlphaInUse() -
getNumColors
public int getNumColors()
-