libCZI
Reading and Writing CZI documents made easy
|
#include <libCZI_Pixels.h>
Public Member Functions | |
virtual PixelType | GetPixelType () const =0 |
virtual IntSize | GetSize () const =0 |
virtual BitmapLockInfo | Lock ()=0 |
virtual void | Unlock ()=0 |
std::uint32_t | GetWidth () const |
std::uint32_t | GetHeight () const |
This interface is used to represent a bitmap.
In order to access the pixel data, the Lock-method must be called. The information returned from the Lock-method is to be considered valid only until Unlock is called. If a bitmap is destroyed while it is locked, this is considered to be a fatal error. It is legal to call Lock multiple times, but the calls to Lock and Unlock must be balanced.
|
inline |
Gets the height of the bitmap in pixels.
|
pure virtual |
Gets pixel type.
|
pure virtual |
Gets the size of the bitmap (i.e. its width and height in pixels).
|
inline |
Gets the width of the bitmap in pixels.
|
pure virtual |
Gets a data structure allowing for direct access of the bitmap.
The BitmapLockInfo returned must only be considered to be valid until Unlock is called. It is legal to call Lock multiple time (also from different threads concurrently). In any case, calls to Lock and Unlock must be balanced. It is considered to be a fatal error if the object is destroyed when it is locked.
|
pure virtual |
Inform the bitmap object that the data (previously retrieved by a call to Lock) is not longer used.
The BitmapLockInfo returned must only be considered to be valid until Unlock is called.