Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef __WPGBITMAP_H__
00028 #define __WPGBITMAP_H__
00029
00030 #include "WPGColor.h"
00031 #include <librevenge/librevenge.h>
00032
00033 namespace libwpg
00034 {
00035
00036 class WPGBitmap
00037 {
00038 public:
00039 WPGBitmap(int width, int height, int verticalResolution, int horizontalResolution, bool verticalFlip=false, bool horizontalFlip=false);
00040
00041 WPGBitmap(const WPGBitmap &);
00042
00043 WPGBitmap &operator=(const WPGBitmap &);
00044
00045 void copyFrom(const WPGBitmap &);
00046
00047 ~WPGBitmap();
00048
00049
00050 int width() const;
00051
00052
00053 int height() const;
00054
00055
00056 int vres() const;
00057
00058
00059 int hres() const;
00060
00061 void setPixel(int x, int y, const WPGColor &color);
00062
00063 const ::librevenge::RVNGBinaryData &getDIB() const;
00064
00065 private:
00066 class Private;
00067 Private *const d;
00068 };
00069
00070 }
00071
00072 #endif // __WPGBITMAP_H__
00073