libCZI
Reading and Writing CZI documents made easy
|
#include <libCZI_Compositor.h>
Classes | |
struct | Options |
Options used for this accessor. More... | |
Interface for single channel scaling tile accessors. This accessor creates a multi-tile composite of a single channel (and a single plane) with a given zoom-factor. It will use pyramid sub-blocks (if present) in order to create the destination bitmap. In this operation, it will use the pyramid-layer just above the specified zoom-factor and scale down to the requested size.
The scaling operation employed here is a simple nearest-neighbor algorithm.
|
pure virtual |
Calculates the size a bitmap will have (when created by this accessor) for the specified ROI and the specified Zoom. Since the exact size if subject to rounding errors, one should always use this method if the exact size must be known beforehand. The Get-method which operates on a pre-allocated bitmap will only work if the size (of the bitmap passed in) exactly matches.
roi | The ROI (since only the size is relevant here currently, the coordinate system it is given in does not matter). |
zoom | The zoom factor. |
|
inline |
Gets the scaled tile composite of the specified plane and the specified ROI with the specified zoom factor.
The pixeltype is determined by examining the first subblock found in the specified plane (which is an arbitrary subblock). A newly allocated bitmap is returned.
roi | The ROI (given in raw-subblock-coordinate-system, c.f. Coordinate Systems). |
planeCoordinate | The plane coordinate. |
zoom | The zoom. |
pOptions | Options for controlling the operation (may be nullptr). |
std::shared_ptr<libCZI::IBitmapData>
containing the composite.
|
pure virtual |
Gets the scaled tile composite of the specified plane and the specified ROI with the specified zoom factor.
The pixeltype is determined by examining the first subblock found in the specified plane (which is an arbitrary subblock). A newly allocated bitmap is returned.
roi | The ROI and the coordinate system it is defined in. |
planeCoordinate | The plane coordinate. |
zoom | The zoom. |
pOptions | Options for controlling the operation (may be nullptr). |
std::shared_ptr<libCZI::IBitmapData>
containing the composite.
|
inline |
Copy the composite to the specified bitmap. The size of the bitmap must exactly match the size reported by the method "CalcSize" (for the same ROI and zoom), otherwise an invalid_argument-exception is thrown.
[in,out] | pDest | The destination bitmap. |
roi | The ROI (given in raw-subblock-coordinate-system, c.f. Coordinate Systems). | |
planeCoordinate | The plane coordinate. | |
zoom | The zoom factor. | |
pOptions | Options controlling the operation. May be nullptr. |
|
pure virtual |
Copy the composite to the specified bitmap. The size of the bitmap must exactly match the size reported by the method "CalcSize" (for the same ROI and zoom), otherwise an invalid_argument-exception is thrown.
[in,out] | pDest | The destination bitmap. |
roi | The ROI and the coordinate system it is defined in. | |
planeCoordinate | The plane coordinate. | |
zoom | The zoom factor. | |
pOptions | Options controlling the operation. May be nullptr. |
|
inline |
Gets the scaled tile composite of the specified plane and the specified ROI with the specified zoom factor.
pixeltype | The pixeltype (of the destination bitmap). |
roi | The ROI (given in raw-subblock-coordinate-system, c.f. Coordinate Systems). |
planeCoordinate | The plane coordinate. |
zoom | The zoom factor. |
pOptions | Options for controlling the operation (may be nullptr). |
std::shared_ptr<libCZI::IBitmapData>
containing the composite.
|
pure virtual |
Gets the scaled tile composite of the specified plane and the specified ROI with the specified zoom factor.
pixeltype | The pixeltype (of the destination bitmap). |
roi | The ROI and the coordinate system it is defined in. |
planeCoordinate | The plane coordinate. |
zoom | The zoom factor. |
pOptions | Options for controlling the operation (may be nullptr). |
std::shared_ptr<libCZI::IBitmapData>
containing the composite.