~ubuntu-branches/ubuntu/lucid/xpdf/lucid-updates

« back to all changes in this revision

Viewing changes to splash/SplashScreen.h

  • Committer: Bazaar Package Importer
  • Author(s): Andy Price
  • Date: 2007-05-17 22:04:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517220433-gzcx2lrvllkbl7mr
Tags: 3.02-1ubuntu1
* Merge from Debian unstable (LP: #113365), remaining changes:
  - Added back 09_xpdfrc_manpage.dpatch (LP #71753)
  - Set Ubuntu maintainer

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
class SplashScreen {
23
23
public:
24
24
 
25
 
  SplashScreen(int sizeA);
 
25
  SplashScreen(SplashScreenParams *params);
26
26
  SplashScreen(SplashScreen *screen);
27
27
  ~SplashScreen();
28
28
 
30
30
 
31
31
  // Return the computed pixel value (0=black, 1=white) for the gray
32
32
  // level <value> at (<x>, <y>).
33
 
  int test(int x, int y, SplashCoord value);
 
33
  int test(int x, int y, Guchar value);
34
34
 
35
35
  // Returns true if value is above the white threshold or below the
36
36
  // black threshold, i.e., if the corresponding halftone will be
37
37
  // solid white or black.
38
 
  GBool isStatic(SplashCoord value);
 
38
  GBool isStatic(Guchar value);
39
39
 
40
40
private:
41
41
 
42
 
  SplashCoord *mat;             // threshold matrix
 
42
  void buildDispersedMatrix(int i, int j, int val,
 
43
                            int delta, int offset);
 
44
  void buildClusteredMatrix();
 
45
  int distance(int x0, int y0, int x1, int y1);
 
46
  void buildSCDMatrix(int r);
 
47
 
 
48
  Guchar *mat;                  // threshold matrix
43
49
  int size;                     // size of the threshold matrix
44
 
  SplashCoord minVal;           // any pixel value below minVal generates
 
50
  Guchar minVal;                // any pixel value below minVal generates
45
51
                                //   solid black
46
 
  SplashCoord maxVal;           // any pixel value above maxVal generates
 
52
  Guchar maxVal;                // any pixel value above maxVal generates
47
53
                                //   solid white
48
54
};
49
55