public interface IColorPalette
The color palette interface.
Modifier and Type | Method and Description |
---|---|
int |
getArgb32Color(int index)
Gets the 32-bit ARGB palette color by index.
|
int[] |
getArgb32Entries()
Gets an array of 32-bit ARGB structures.
|
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.
|
int |
getNearestColorIndex(int argb32Color)
Gets the index of the nearest 32-bit ARGB color.
|
boolean |
isCompactPalette()
Gets a value indicating whether compact palette is used.
|
int getEntriesCount()
Gets the entries count.
Value: The entries count.int[] getArgb32Entries()
Gets an array of 32-bit ARGB structures.
ColorPalette
.
Value: The 32-bit ARGB entries.Color[] getEntries()
Gets an array of Color
structures.
Color
structure that make up this ColorPalette
.
Value: The entries.boolean isCompactPalette()
Gets a value indicating whether compact palette is used.
Value:true
if compact palette is used; otherwise, false
.int getNearestColorIndex(int argb32Color)
Gets the index of the nearest 32-bit ARGB color.
argb32Color
- The 32-bit ARGB color.int getNearestColorIndex(Color color)
Gets the index of the nearest color.
color
- The color.int getArgb32Color(int index)
Gets the 32-bit ARGB palette color by index.
index
- The 32-bit ARGB palette color index.index
.com.aspose.ms.System.ArgumentOutOfRangeException
- if color palette index
specified is out of the palette entries range.Color getColor(int index)
Gets the palette color by index.
index
- The palette color index.index
.com.aspose.ms.System.ArgumentOutOfRangeException
- if color palette index
specified is out of the palette entries range.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.