Sorry, stupid question of me!



Begin doorgestuurd bericht:

Van: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Datum: 12 januari 2007 20:12:40 GMT+01:00
Aan: REALbasic NUG <[email protected]>
Onderwerp: Antw.: Clear a region in a picture
Antwoord aan: REALbasic NUG <[email protected]>

I will try this, do you have also an idea of clearing only the pixels outside the region of the roundrect?


Op 12-jan-2007, om 17:45 heeft Jonathan Johnson het volgende geschreven:

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
_______________________________________________
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>

Reply via email to