]> www.fi.muni.cz Git - evince.git/blob - pdf/splash/SplashBitmap.h
added.
[evince.git] / pdf / splash / SplashBitmap.h
1 //========================================================================
2 //
3 // SplashBitmap.h
4 //
5 //========================================================================
6
7 #ifndef SPLASHBITMAP_H
8 #define SPLASHBITMAP_H
9
10 #include <aconf.h>
11
12 #ifdef USE_GCC_PRAGMAS
13 #pragma interface
14 #endif
15
16 #include "SplashTypes.h"
17
18 //------------------------------------------------------------------------
19 // SplashBitmap
20 //------------------------------------------------------------------------
21
22 class SplashBitmap {
23 public:
24
25   // Create a new bitmap.
26   SplashBitmap(int widthA, int heightA, SplashColorMode modeA);
27
28   ~SplashBitmap();
29
30   int getWidth() { return width; }
31   int getHeight() { return height; }
32   int getRowSize() { return rowSize; }
33   SplashColorMode getMode() { return mode; }
34   SplashColorPtr getDataPtr() { return data; }
35
36   SplashError writePNMFile(char *fileName);
37
38 private:
39
40   int width, height;            // size of bitmap
41   int rowSize;                  // size of one row of data, in bytes
42   SplashColorMode mode;         // color mode
43   SplashColorPtr data;
44
45   friend class Splash;
46 };
47
48 #endif