summaryrefslogtreecommitdiff
path: root/splash/SplashScreen.h
blob: c8b9a8d783e662d69cd9d73b3f1da036ec22b336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//========================================================================
//
// SplashScreen.h
//
//========================================================================

#ifndef SPLASHSCREEN_H
#define SPLASHSCREEN_H

#ifdef USE_GCC_PRAGMAS
#pragma interface
#endif

#include "SplashTypes.h"

//------------------------------------------------------------------------
// SplashScreen
//------------------------------------------------------------------------

class SplashScreen {
public:

  SplashScreen(int sizeA);
  ~SplashScreen();

  SplashScreen *copy() { return new SplashScreen(size << 1); }

  // Return the computed pixel value (0=black, 1=white) for the gray
  // level <value> at (<x>, <y>).
  int test(int x, int y, SplashCoord value);

private:

  SplashCoord *mat;		// threshold matrix
  int size;			// size of the threshold matrix
};

#endif