source: trunk/poppler/mypoppler/splash/SplashScreen.h @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 15 years ago

First import

File size: 1.2 KB
Line 
1//========================================================================
2//
3// SplashScreen.h
4//
5//========================================================================
6
7#ifndef SPLASHSCREEN_H
8#define SPLASHSCREEN_H
9
10#ifdef USE_GCC_PRAGMAS
11#pragma interface
12#endif
13
14#include "SplashTypes.h"
15
16//------------------------------------------------------------------------
17// SplashScreen
18//------------------------------------------------------------------------
19
20class SplashScreen {
21public:
22
23  SplashScreen(int sizeA);
24  SplashScreen(SplashScreen *screen);
25  ~SplashScreen();
26
27  SplashScreen *copy() { return new SplashScreen(this); }
28
29  // Return the computed pixel value (0=black, 1=white) for the gray
30  // level <value> at (<x>, <y>).
31  int test(int x, int y, SplashCoord value);
32
33  // Returns true if value is above the white threshold or below the
34  // black threshold, i.e., if the corresponding halftone will be
35  // solid white or black.
36  GBool isStatic(SplashCoord value);
37
38private:
39
40  SplashCoord *mat;             // threshold matrix
41  int size;                     // size of the threshold matrix
42  SplashCoord minVal;           // any pixel value below minVal generates
43                                //   solid black
44  SplashCoord maxVal;           // any pixel value above maxVal generates
45                                //   solid white
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.