|
LibreOffice
LibreOffice 24.8 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. | |
| boolean | getIndex ([out] sequence< ColorComponent > entry, [in] long nIndex) raises (com::sun::star::lang::IndexOutOfBoundsException) |
| Request the color for the given palette entry. | |
| 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. | |
| XColorSpace | getColorSpace () |
| Query associated color space. | |
| Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) |
| queries for a new interface to an existing UNO object. | |
| void | acquire () |
| increases the reference counter by one. | |
| void | release () |
| decreases the reference counter by one. | |
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]. |
| 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]. |
| 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. |