LibreOffice
LibreOffice 24.2 SDK API Reference
|
Interface to access the palette of a color-indexed bitmap. More...
import"XBitmapPalette.idl";
Public Member Functions | |
long | getNumberOfEntries () |
Request the number of palette entries available. More... | |
boolean | getIndex ([out] sequence< ColorComponent > entry, [in] long nIndex) raises (com::sun::star::lang::IndexOutOfBoundsException) |
Request the color for the given palette entry. More... | |
boolean | setIndex ([in] sequence< ColorComponent > color, [in] boolean transparency, [in] long nIndex) raises (com::sun::star::lang::IndexOutOfBoundsException, com::sun::star::lang::IllegalArgumentException) |
Set the color for the given palette entry. More... | |
XColorSpace | getColorSpace () |
Query associated color space. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
Interface to access the palette of a color-indexed bitmap.
XColorSpace getColorSpace | ( | ) |
Query associated color space.
boolean getIndex | ( | [out] sequence< ColorComponent > | entry, |
[in] long | nIndex | ||
) | |||
raises | ( | com::sun::star::lang::IndexOutOfBoundsException | |
) |
Request the color for the given palette entry.
entry | Output parameter for the color components at the given palette entry. |
nIndex | The index of the palette entry to be retrieved. Valid range is [0,getNumberOfEntries()-1]. |
TRUE
, if the given palette entry should be displayed opaque, and FALSE
if the entry should be displayed transparent. This is sometimes used for so-called mask transparency, by flagging certain palette entries to be fully transparent when displaying the bitmap.com::sun::star::lang::IndexOutOfBoundsException | if the index is smaller than zero or larger than XBitmapPalette::getNumberOfEntries()-1. |
long getNumberOfEntries | ( | ) |
Request the number of palette entries available.
boolean setIndex | ( | [in] sequence< ColorComponent > | color, |
[in] boolean | transparency, | ||
[in] long | nIndex | ||
) | |||
raises | ( | com::sun::star::lang::IndexOutOfBoundsException, | |
com::sun::star::lang::IllegalArgumentException | |||
) |
Set the color for the given palette entry.
color | Sequence of device color values in the associated bitmap's device color format. |
transparency | When TRUE , the specified palette entry is displayed as opaque color. When FALSE , the given entry displays as fully transparent during output. |
nIndex | The index of the palette entry to be changed. Valid range is [0,getNumberOfEntries()-1]. |
FALSE
.com::sun::star::lang::IndexOutOfBoundsException | if the index is smaller than zero or larger than XBitmapPalette::getNumberOfEntries()-1. |
com::sun::star::lang::IllegalArgumentException | if the given sequence of color components does not match the associated bitmap's device color format. |