]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | //======================================================================== |
2 | // | |
3 | // SplashScreen.h | |
4 | // | |
5 | //======================================================================== | |
6 | ||
7 | #ifndef SPLASHSCREEN_H | |
8 | #define SPLASHSCREEN_H | |
9 | ||
10 | #include <config.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(SplashScreen *screen); | |
27 | ~SplashScreen(); | |
28 | ||
29 | SplashScreen *copy() { return new SplashScreen(this); } | |
30 | ||
31 | // Return the computed pixel value (0=black, 1=white) for the gray | |
32 | // level <value> at (<x>, <y>). | |
33 | int test(int x, int y, SplashCoord value); | |
34 | ||
35 | // Returns true if value is above the white threshold or below the | |
36 | // black threshold, i.e., if the corresponding halftone will be | |
37 | // solid white or black. | |
38 | GBool isStatic(SplashCoord value); | |
39 | ||
40 | private: | |
41 | ||
42 | SplashCoord *mat; // threshold matrix | |
43 | int size; // size of the threshold matrix | |
44 | SplashCoord minVal; // any pixel value below minVal generates | |
45 | // solid black | |
46 | SplashCoord maxVal; // any pixel value above maxVal generates | |
47 | // solid white | |
48 | }; | |
49 | ||
50 | #endif |