主权项 |
1. A method for rendering rectangle drawing objects, comprising:
receiving, by at least one processor, print data including data representing a plurality of rectangle drawing objects, the plurality of rectangle drawing objects including at least a first rectangle drawing object and a second rectangle drawing object; determining, by the at least one processor, if the second rectangle drawing object satisfies a predetermined condition with respect to the first rectangle drawing object; if the predetermined condition is satisfied, generating, by the at least one processor, one-line raster image data associated with the second rectangle drawing object and storing, by the at least one processor, the one-line raster image data in a data buffer, wherein the one-line raster image data indicates a filling color of the second rectangle drawing object over a first extent in a first direction, the first extent corresponding to a first parameter of the second rectangle drawing object; and using, by the at least one processor, the one-line raster image data a number of times over a second extent in a second direction perpendicular to the first direction to fill a drawing region corresponding to at least the second rectangle drawing object, the second extent corresponding to a second parameter of the second rectangle drawing object. |