On 26/06/2006, at 8:35 PM, Stephen Dodd wrote:
1) Assign a circular mask with translucent shadow to a new picture
in memory for buffering.
2) Copy State1 (a graphic) to the Buffer. (State1 is a beach ball
surrounded by black. The mask turns part of the black into a shadow.)
3) Draw the Buffer to the screen
(so far so good.)
4) Clear the buffer. Copy State2 to the Buffer.
You need one more layer of drawing, composing all your different
masked shapes together.
if you have a single comparatively small masked shape against a large
buffer, it might be quicker to maintain a portion of that buffer
i) calc dest drawing rect for masked overlay
ii) copy the dest rec to savedOverlayDest
iii) draw the masked shape to the dest rec
iv) draw the buffer to the screen
v) draw savedOverlayDest back to its original location (the masked
shape would have disappeared if you drew the buffer onscreen now)
repeat
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>