5 #include "CommonDefinitions.h"
8 class Scaler : public Processor
11 Scaler(unsigned int inputwidth, unsigned int numerator,
12 unsigned int denominator, bool bVIP, unsigned int BytesPerPixel,
13 unsigned int iNumInks);
15 bool Process(RASTERDATA* InputRaster);
16 virtual void Flush() { Process(NULL); }
19 unsigned int remainder;
21 unsigned int GetMaxOutputWidth();
22 bool NextOutputRaster(RASTERDATA &next_raster);
26 bool scaling; // false iff ScaleFactor==1.0
27 bool ReplicateOnly; // true iff 1<ScaleFactor<2
29 unsigned int iOutputWidth;
30 unsigned int iInputWidth;
31 BYTE *pOutputBuffer[MAX_COLORTYPE];
33 unsigned int rowremainder;
36 DRIVER_ERROR constructor_error;