Methods' Details |
getNumberOfEntries
long |
getNumberOfEntries(); |
- Description
- Request the number of palette entries available.
- Returns
- the number of entries in this palette.
|
|
getPaletteIndex
- Description
- Request the color for the given palette entry.
- Parameter nIndex
-
The index of the palette entry to be retrieved. Valid range is
[0,getNumberOfEntries()-1].
- Returns
- the device color sequence of the requested palette
entry.
- Throws
- com::sun::star::lang::IndexOutOfBoundsException
if the index is smaller than zero or larger than
::com::sun::star::rendering::XBitmapPalette::getNumberOfEntries() -1.
|
|
setPaletteIndex
- Description
- Set the color for the given palette entry.
- Parameter color
-
Sequence of device color values in the associated bitmap's
device color format.
- Parameter nIndex
-
The index of the palette entry to be changed. Valid range is
[0,getNumberOfEntries()-1].
- Returns
- whether the palette entry was changed. For read-only
entries, this method always returns false .
- Throws
- com::sun::star::lang::IndexOutOfBoundsException
if the index is smaller than zero or larger than
::com::sun::star::rendering::XBitmapPalette::getNumberOfEntries() -1.
- Throws
- com::sun::star::lang::IllegalArgumentException
if the given sequence of color components does not match the
associated bitmap's device color format.
|
|
getColorSpace
- Description
- Query associated color space.
- Returns
- the color space that is associated with this palette.
|
|
Copyright © 2003 Sun Microsystems, Inc.