Bitmaps are explicitely shared using reference-counting. Copying is cheap, so IpeBitmap objects are meant to be passed by value.
The bitmap can cache data to speed up rendering. This data can be set only once (as the bitmap is conceptually immutable).
The bitmap also provides a slot for short-term storage of an "object number". The PDF embedder, for instance, sets it to the PDF object number when embedding the bitmap, and can reuse it when "drawing" the bitmap.
|
Default constructor constructs null bitmap.
|
|
Create a new image.
|
|
Create from XML stream.
|
|
Create from XML using external raw data.
|
|
Copy constructor.
|
|
Destructor.
|
|
Assignment operator (takes care of reference counting).
|
|
Save bitmap in XML stream.
|
|
Is this a null bitmap?
|
|
Return the color space of the image.
|
|
Return the data filter of the image data.
|
|
Return number of components per pixel.
|
|
Return the number of bits per component.
|
|
Return width of pixel array.
|
|
Return height of pixel array.
|
|
Return a pointer to the image data (in PDF arrangement).
|
|
Return size (number of bytes) of image data (in PDF arrangement).
|
|
Return object number of the bitmap.
|
|
Set object number of the bitmap.
|
|
Return cached bitmap for rendering.
|
|
Set a cached bitmap for fast rendering.
|
|
Convert bitmap data to a height x width pixel array in rgb format. Returns empty buffer if it cannot decode the bitmap information. Otherwise, returns a buffer of size Width() * Height() uint's. |
|
Two bitmaps are equal if they share the same data.
|
|
Two bitmaps are equal if they share the same data.
|
|
Less operator, to be able to sort bitmaps. The checksum is used, when it is equal, the shared address. This guarantees that bitmaps that are == (share their implementation) are next to each other, and blocks of them are next to blocks that are identical in contents. |