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; }