Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 8/30/2007 Posts: 33
|
Team,
I have defined a paint brush and I would like to know what is the method or property to set opacity to 25% for example.
my intuition, color.opacity doesn´t work ;), and other combinations don´t belong to system.drawing.color.
thanks,
|
|
 Administration
Joined: 9/30/2004 Posts: 9,187
|
I don't think opacity is a property of the Paintbrush.
|
|
 Administration
Joined: 10/7/2004 Posts: 378
|
to set the opacity do this
plotcolor = color.FromArgb(100,color.Green)
the color.FromArgb can be used two ways.
color.FromArgb(Alpha, Color)
color.FromArgb(Alpha,Red, Green, Blue)
Alpha can be range from 0 to 255. 255 is opaque and 0 is transparent.
The first one is based on the color supplied and the second can have values between 0 and 255 for red green and blue.
Ole
|
|
Registered User Joined: 8/30/2007 Posts: 33
|
thanks!
|
|
Guest-1 |