[previous] [up] [next]     [index]
Next: draw-rounded-rectangle Up: dc<> Previous: draw-polygon

draw-rectangle

Draws a rectangle. The current pen is used for the outline and the current brush for filling the shape.

If both the pen and brush are non-transparent, the rectangle is filled with the brush before the outline is drawn with the pen. When the pen is size 0 or 1, the filling precisely overlaps the entire outline. As a result, if a rectangle is drawn with a size-0 or size-1 'xor pen% and an 'xor brush%, the outline is xored twice (first by the brush, then by the pen), leaving it unchanged.



PLT