A method for smooth trapping of an object containing run length encoded
image pixel data, includes collecting a number of scanlines of run length
encoded pixel data equal to 2M in a buffer, wherein M is a line width
trap threshold; determining those runs within the collected scanlines
that require trapping, wherein a run is a portion of a scanline; if
trapping is required in the fast scan direction and the length of the run
requiring trapping is less than M, reducing the width of the trap region
by a prorated percent. If trapping is required in the slow scan
direction, and the number of runs above and below the run to be trapped
is less than M, reducing the number of runs above and below the run to be
trapped by a prorated percentage.