A system and method for scaling raster image data in multiple directions.
One embodiment of the present invention comprises obtaining input scan
lines containing a raster image and obtaining at least one scaling value.
The method involves a process for altering the length of the scan lines
to produce modified scan lines. The method also involves the generation
of a plurality of masks, wherein the masks comprise a number of selected
bits, and wherein the number of selected bits is based on the scaling
value. The method processes sequences of the modified scan lines with
individual masks to produce a plurality of output scan lines. The output
scan lines are configured to form a raster image having a modified scale
in multiple directions.