]> www.fi.muni.cz Git - evince.git/blob - pdf/splash/SplashScreen.h
added.
[evince.git] / pdf / splash / SplashScreen.h
1 //========================================================================
2 //
3 // SplashScreen.h
4 //
5 //========================================================================
6
7 #ifndef SPLASHSCREEN_H
8 #define SPLASHSCREEN_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 // SplashScreen
20 //------------------------------------------------------------------------
21
22 class SplashScreen {
23 public:
24
25   SplashScreen(int sizeA);
26   ~SplashScreen();
27
28   SplashScreen *copy() { return new SplashScreen(size << 1); }
29
30   // Return the computed pixel value (0=black, 1=white) for the gray
31   // level <value> at (<x>, <y>).
32   int test(int x, int y, SplashCoord value);
33
34 private:
35
36   SplashCoord *mat;             // threshold matrix
37   int size;                     // size of the threshold matrix
38 };
39
40 #endif