Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Draw with transpency 1

Status
Not open for further replies.

TipGiver

Programmer
Sep 1, 2005
1,863
Hi,

I draw on a Panel using its .CreateGraphics. I draw an arc using the .DrawArc witch accepts a rectangle. The code:
Code:
   Private pen As New dw.Pen(Drawing.Color.Blue, 3)
   Dim rect As New Drawing.Rectangle(0,0,100,100)
   g.DrawArc(pen, rect, 0, 90)

The "g" is the .creategraphics of the panel

>> The things that are drawn are covered by the rect.. How can i make the rect transparent ?

Thank you
 
Hm, i saw that there is a color : Color.Trasparent
I think this can help a little :)
 
This before the .DrawArc :

Graphics.FillRectangle(Drawing.Brushes.Transparent, rect)

did the trick :)
(sry for the self-answer thread)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top