libCZI
Reading CZI documents made easy
libCZI::SubBlockInfo Struct Reference

Information about a sub-block. More...

#include <libCZI.h>

Public Member Functions

double GetZoom () const
 

Public Attributes

CompressionMode mode
 The compression mode of the sub-block.
 
PixelType pixelType
 The pixel type of the sub-block.
 
libCZI::CDimCoordinate coordinate
 The coordinate of the sub-block.
 
libCZI::IntRect logicalRect
 The rectangle where the bitmap (in this sub-block) is located.
 
libCZI::IntSize physicalSize
 The physical size of the bitmap (which may be different to the size of logicalRect).
 
int mIndex
 The M-index of the sub-block (if available). If not available, it has the value std::numeric_limits<int>::max().
 

Detailed Description

Information about a sub-block.

Member Function Documentation

◆ GetZoom()

double libCZI::SubBlockInfo::GetZoom ( ) const
inline

Calculate a zoom-factor from the physical- and logical size.

Remarks
This calculation not really well-defined.
Returns
The zoom factor.

The documentation for this struct was generated from the following file: