1 //========================================================================
5 //========================================================================
10 #pragma implementation
13 #include "SplashMath.h"
14 #include "SplashScreen.h"
15 #include "SplashPattern.h"
17 //------------------------------------------------------------------------
19 //------------------------------------------------------------------------
21 SplashPattern::SplashPattern() {
24 SplashPattern::~SplashPattern() {
27 //------------------------------------------------------------------------
29 //------------------------------------------------------------------------
31 SplashSolidColor::SplashSolidColor(SplashColor colorA) {
35 SplashSolidColor::~SplashSolidColor() {
38 SplashColor SplashSolidColor::getColor(int x, int y) {
42 //------------------------------------------------------------------------
44 //------------------------------------------------------------------------
46 SplashHalftone::SplashHalftone(SplashColor color0A, SplashColor color1A,
47 SplashScreen *screenA, SplashCoord valueA) {
54 SplashPattern *SplashHalftone::copy() {
55 return new SplashHalftone(color0, color1, screen->copy(), value);
58 SplashHalftone::~SplashHalftone() {
62 SplashColor SplashHalftone::getColor(int x, int y) {
63 return screen->test(x, y, value) ? color1 : color0;