|
libopenraw
0.3.7
|
Represent some bitmap data. More...
#include <bitmapdata.hpp>
Classes | |
| class | Private |
Public Types | |
| typedef ::or_data_type | DataType |
Public Member Functions | |
| void | swap (BitmapData &with) |
| Swap the two objects data. | |
| DataType | dataType () const |
| Get the data type. | |
| void | setDataType (DataType _type) |
| Set the data type. | |
| virtual void * | allocData (const size_t s) |
| size_t | size () const |
| Get the size of the data. | |
| void * | data () const |
| uint32_t | width () const |
| Width of the image data. | |
| uint32_t | height () const |
| Height of the image data. | |
| uint32_t | bpc () const |
| Bit per channel. | |
| void | setBpc (uint32_t _bpc) |
| Set bit per channel. | |
| virtual void | setDimensions (uint32_t x, uint32_t y) |
| Set the pixel dimensions of the bitmap. | |
| void | adjustSize (size_t size) |
Represent some bitmap data.
Definition at line 29 of file bitmapdata.hpp.
| void OpenRaw::BitmapData::adjustSize | ( | size_t | size | ) |
Adjust the size after allocation. If size is bigger than allocated size, then it's a no-op.
Definition at line 125 of file bitmapdata.cpp.
References OpenRaw::BitmapData::Private::data_size, and size().