|
LibreOfficeDev
LibreOfficeDev 27.2 SDK API Reference
|
This is a specialized interface for bitmaps having integer color channels. More...
Public Member Functions | |
| sequence< byte > | getData ([out] IntegerBitmapLayout bitmapLayout, [in] ::com::sun::star::geometry::IntegerRectangle2D rect) raises (com::sun::star::lang::IndexOutOfBoundsException) |
| Query the raw data of this bitmap. | |
| IntegerBitmapLayout | getMemoryLayout () |
| Query the memory layout for this bitmap. | |
Public Member Functions inherited from XBitmap | |
| ::com::sun::star::geometry::IntegerSize2D | getSize () |
| Query the size of the bitmap. | |
| boolean | hasAlpha () |
| Query transparency status of the bitmap. | |
| XBitmap | getScaledBitmap ([in] ::com::sun::star::geometry::RealSize2D newSize, [in] boolean beFast) raises (com::sun::star::lang::IllegalArgumentException) |
| Query a scaled copy of the original bitmap. | |
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. | |
This is a specialized interface for bitmaps having integer color channels.
| sequence< byte > getData | ( | [out] IntegerBitmapLayout | bitmapLayout, |
| [in] ::com::sun::star::geometry::IntegerRectangle2D | rect | ||
| ) | |||
| raises | ( | com::sun::star::lang::IndexOutOfBoundsException | |
| ) | |||
Query the raw data of this bitmap.
Query the raw data of this bitmap, in the format as defined by getMemoryLayout(). With the given rectangle, a subset of the whole bitmap can be queried. If the internal data format's pixel are not integer multiples of bytes (i.e. if one pixel occupies less than a byte), the leftover content of the bytes at the right of each scanline is filled with zeros. The details of the scanline padding are to be retrieved from the passed bitmap layout.
Note that the bitmap memory layout might change over time for volatile bitmaps.
| bitmapLayout | The memory layout the returned data is in. Note that the color space returned therein needs to always match the current color space as would have been returned by getMemoryLayout(). |
| rect | A rectangle, within the bounds of the bitmap, to retrieve the consent from. |
| com::sun::star::lang::IndexOutOfBoundsException | if parts of the given rectangle are outside the permissible bitmap area. |
| IntegerBitmapLayout getMemoryLayout | ( | ) |
Query the memory layout for this bitmap.
Please note that for volatile bitmaps, the memory layout might change between subsequent calls.