libCZI
Reading and Writing CZI documents made easy
|
#include <libCZI_Compositor.h>
Classes | |
struct | Options |
Options for controlling the composition operation. More... | |
Public Member Functions | |
virtual std::shared_ptr< libCZI::IBitmapData > | Get (const libCZI::IntRect &roi, const IDimCoordinate *planeCoordinate, const Options *pOptions)=0 |
Gets the tile composite of the specified plane and the specified ROI. The pixeltype is determined by examing the first subblock found in the specified plane (which is an arbitrary subblock). A newly allocated bitmap is returned. More... | |
virtual std::shared_ptr< libCZI::IBitmapData > | Get (libCZI::PixelType pixeltype, const libCZI::IntRect &roi, const IDimCoordinate *planeCoordinate, const Options *pOptions)=0 |
virtual void | Get (libCZI::IBitmapData *pDest, int xPos, int yPos, const IDimCoordinate *planeCoordinate, const Options *pOptions)=0 |
std::shared_ptr< libCZI::IBitmapData > | Get (int xPos, int yPos, int width, int height, const IDimCoordinate *planeCoordinate, const Options *pOptions) |
std::shared_ptr< libCZI::IBitmapData > | Get (libCZI::PixelType pixeltype, int xPos, int yPos, int width, int height, const IDimCoordinate *planeCoordinate, const Options *pOptions) |
This accessor creates a multi-tile composite of a single channel (and a single plane). The accessor will request all tiles that intersect with the specified ROI and are on the specified plane and create a composite as shown here:
The resulting output bitmap will look like this:
This accessor only operates on pyramid layer 0 - i. e. only sub-blocks with logical_size = physical_size will be considered. If the flag "drawTileBorder" is set, then the tiles will be sorted by their M-index (tiles with higher M-index are placed 'on top').
The pixel type of the output bitmap is either specified as an argument or it is automatically determined. In the latter case the first sub-block found on the specified plane is examined for its pixeltype, and this pixeltype is used.
The pixels in the output bitmap get converted from the source pixels (if their pixeltypes differ).
|
pure virtual |
Gets the tile composite of the specified plane and the specified ROI. The pixeltype is determined by examing the first subblock found in the specified plane (which is an arbitrary subblock). A newly allocated bitmap is returned.
It needs to be defined what is supposed to happen if there is no subblock found in the specified plane.
roi | The ROI. |
planeCoordinate | The plane coordinate. |
pOptions | Options for controlling the operation. |
|
inline |
Gets the tile composite of the specified plane and the specified ROI. The pixeltype is determined by examing the first subblock found in the specified plane (which is an arbitrary subblock). A newly allocated bitmap is returned.
xPos | The x-position. |
yPos | The y-position. |
width | The width. |
height | The height. |
planeCoordinate | The plane coordinate. |
pOptions | Options for controlling the operation. |
|
pure virtual |
Copy the tile composite into the specified bitmap. The bitmap passed in here determines the width and the height of the ROI (and the pixeltype).
[in] | pDest | The destination bitmap. |
xPos | The x-position of the ROI (width and height are given by pDest). | |
yPos | The y-position of the ROI ((width and height are given by pDest). | |
planeCoordinate | The plane coordinate. | |
pOptions | Options for controlling the operation. |
|
pure virtual |
Gets the tile composite of the specified plane and the specified ROI.
pixeltype | The pixeltype. |
roi | The ROI. |
planeCoordinate | The plane coordinate. |
pOptions | Options for controlling the operation. |
|
inline |
Gets the tile composite of the specified plane and the specified ROI.
pixeltype | The pixeltype. |
xPos | The x-position. |
yPos | The y-position. |
width | The width. |
height | The height. |
planeCoordinate | The plane coordinate. |
pOptions | Options for controlling the operation. |