|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aspose.imaging.fileformats.psd.PsdColorPalette
public class PsdColorPalette
The psd color palette.
| Constructor Summary | |
|---|---|
PsdColorPalette(byte[] rawEntriesData)
Initializes a new instance of the PsdColorPalette class. |
|
PsdColorPalette(byte[] rawEntriesData,
short transparentIndex)
Initializes a new instance of the PsdColorPalette class. |
|
PsdColorPalette(Color[] colorPaletteEntries)
Initializes a new instance of the PsdColorPalette class. |
|
PsdColorPalette(Color[] colorPaletteEntries,
short transparentIndex)
Initializes a new instance of the PsdColorPalette class. |
|
PsdColorPalette(IColorPalette colorPalette)
Initializes a new instance of the PsdColorPalette class. |
|
PsdColorPalette(IColorPalette colorPalette,
short transparentIndex)
Initializes a new instance of the PsdColorPalette class. |
|
| Method Summary | |
|---|---|
Color |
getColor(int index)
Gets the palette color by index. |
Color[] |
getEntries()
Gets an array of Color structures. |
int |
getEntriesCount()
Gets the entries count. |
int |
getNearestColorIndex(Color color)
Gets the index of the nearest color. |
byte[] |
getRawEntries()
Gets the raw color palette entries data. |
int |
getRawEntriesCount()
Gets the raw color palette entries count. |
Color |
getTransparentColor()
Gets the transparent color. |
short |
getTransparentIndex()
Gets the index of the transparent color. |
boolean |
hasTransparentColor()
Gets a value indicating whether transparent color exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PsdColorPalette(byte[] rawEntriesData)
Initializes a new instance of the PsdColorPalette class.
rawEntriesData - The raw entries data.
public PsdColorPalette(byte[] rawEntriesData,
short transparentIndex)
Initializes a new instance of the PsdColorPalette class.
rawEntriesData - The raw entries data.transparentIndex - The transparent color index. Note the index is not the raw entries index instead it is for the converted color array.public PsdColorPalette(Color[] colorPaletteEntries)
Initializes a new instance of the PsdColorPalette class.
colorPaletteEntries - The color palette entries.
public PsdColorPalette(Color[] colorPaletteEntries,
short transparentIndex)
Initializes a new instance of the PsdColorPalette class.
colorPaletteEntries - The color palette entries.transparentIndex - The transparent color index.public PsdColorPalette(IColorPalette colorPalette)
Initializes a new instance of the PsdColorPalette class.
colorPalette - The color palette.
public PsdColorPalette(IColorPalette colorPalette,
short transparentIndex)
Initializes a new instance of the PsdColorPalette class.
colorPalette - The color palette.transparentIndex - The transparent color index.| Method Detail |
|---|
public Color getColor(int index)
Gets the palette color by index.
getColor in interface IColorPaletteindex - The palette color index.
index.
java.lang.IllegalArgumentException - if color palette index specified is out of the palette entries range.public Color[] getEntries()
Gets an array of Color structures.
getEntries in interface IColorPaletteColor structure that make up this ColorPalette.
Value: The entries.public int getEntriesCount()
Gets the entries count.
Value: The entries count.
getEntriesCount in interface IColorPalettepublic int getNearestColorIndex(Color color)
Gets the index of the nearest color.
getNearestColorIndex in interface IColorPalettecolor - The color.
public byte[] getRawEntries()
Gets the raw color palette entries data.
Value: The raw color palette entries data.
getRawEntries in interface IPsdColorPalettepublic int getRawEntriesCount()
Gets the raw color palette entries count.
Value: The raw color palette entries count.
getRawEntriesCount in interface IPsdColorPalettepublic Color getTransparentColor()
Gets the transparent color.
Value: The transparent color.
getTransparentColor in interface IPsdColorPalettepublic short getTransparentIndex()
Gets the index of the transparent color.
Value: The index of the transparent color.
getTransparentIndex in interface IPsdColorPalettepublic boolean hasTransparentColor()
Gets a value indicating whether transparent color exists.
Value:true if transparent color exists; otherwise, false.
hasTransparentColor in interface IPsdColorPalette
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||