bitmapdata.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __OPENRAW_BITMAPDATA_H__
00023 #define __OPENRAW_BITMAPDATA_H__
00024
00025
00026 #include <libopenraw/libopenraw.h>
00027
00028
00029 namespace OpenRaw {
00030
00031 class BitmapData
00032 {
00033 public:
00034 typedef ::or_data_type DataType;
00035
00036 BitmapData();
00037 virtual ~BitmapData();
00038
00040 void swap(BitmapData & with);
00041
00043 DataType dataType() const;
00045 void setDataType(DataType _type);
00046
00047 virtual void *allocData(const size_t s);
00049 size_t size() const;
00050 void *data() const;
00051
00052 uint32_t x() const;
00053 uint32_t y() const;
00055 uint32_t bpc() const;
00057 void setBpc(uint32_t _bpc);
00058
00060 virtual void setDimensions(uint32_t x, uint32_t y);
00061
00062 private:
00063 class Private;
00064 BitmapData::Private *d;
00065
00067 BitmapData(const BitmapData& f);
00069 BitmapData & operator=(const BitmapData&);
00070 };
00071
00072 }
00073
00074
00075
00076 #endif