1 //========================================================================
5 //========================================================================
7 #ifndef SPLASHPATTERN_H
8 #define SPLASHPATTERN_H
12 #ifdef USE_GCC_PRAGMAS
16 #include "SplashTypes.h"
20 //------------------------------------------------------------------------
22 //------------------------------------------------------------------------
29 virtual SplashPattern
*copy() = 0;
31 virtual ~SplashPattern();
33 // Return the color value for a specific pixel.
34 virtual void getColor(int x
, int y
, SplashColorPtr c
) = 0;
36 // Returns true if this pattern object will return the same color
37 // value for all pixels.
38 virtual GBool
isStatic() = 0;
43 //------------------------------------------------------------------------
45 //------------------------------------------------------------------------
47 class SplashSolidColor
: public SplashPattern
{
50 SplashSolidColor(SplashColorPtr colorA
);
52 virtual SplashPattern
*copy() { return new SplashSolidColor(color
); }
54 virtual ~SplashSolidColor();
56 virtual void getColor(int x
, int y
, SplashColorPtr c
);
58 virtual GBool
isStatic() { return gTrue
; }
65 //------------------------------------------------------------------------
67 //------------------------------------------------------------------------
69 class SplashHalftone
: public SplashPattern
{
72 SplashHalftone(SplashColorPtr color0A
, SplashColorPtr color1A
,
73 SplashScreen
*screenA
, SplashCoord valueA
);
75 virtual SplashPattern
*copy();
77 virtual ~SplashHalftone();
79 virtual void getColor(int x
, int y
, SplashColorPtr c
);
81 virtual GBool
isStatic();
85 SplashColor color0
, color1
;