resander
May 4th, 2004, 06:12 AM
For example, let the shape be a rectangle and pin down
one point of the line above and outside the topleft hand
corner and control the other end by the mouse.
The Adobe Illustrator handles this scenario with ease even
for gradient-filled rectangles. The 'old' 'vacated' lines
are erased without even a hint of flicker as the line is
moved over the gradient (even when moving very fast).
How do they do it?
I guess one way would be to redraw the fill pattern
constraining it to paint only on top of the line to be
erased, for example by calling CreatePolygonRgn
(to snugly embed the line) and then clip the pattern
against this.
Is this going to work? or are there better ways?
one point of the line above and outside the topleft hand
corner and control the other end by the mouse.
The Adobe Illustrator handles this scenario with ease even
for gradient-filled rectangles. The 'old' 'vacated' lines
are erased without even a hint of flicker as the line is
moved over the gradient (even when moving very fast).
How do they do it?
I guess one way would be to redraw the fill pattern
constraining it to paint only on top of the line to be
erased, for example by calling CreatePolygonRgn
(to snugly embed the line) and then clip the pattern
against this.
Is this going to work? or are there better ways?