On Jan 12, 2007, at 10:04 AM, [EMAIL PROTECTED] wrote:
Hi,
I'm searching for a method what clears a specific region in a picture.
If by Clear you mean fill in with white, then you can take this
approach:
Sub ClearInvertedRoundRect( extends g as Graphics, x as Integer, y as
Integer, width as Integer, height as Integer, arcWidth as Integer,
arcHeight as Integer )
dim maskedPicture as new Picture( g.Width, g.Height, 32 )
maskedPicture.Mask.Graphics.ForeColor = &cFFFFFF
maskedPicture.Mask.Graphics.FillRoundRect( x, y, width, height,
arcWidth, arcHeight )
g.DrawPicture maskedPicture, 0, 0
End Sub
This approach won't work particularly well for printing, as you'll
need to bump up the resolution.
HTH,
Jon
--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.
_______________________________________________
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>