Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Real code - opacity Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
mdfalco
Posted : Sunday, February 17, 2008 6:05:21 AM
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,

StockGuy
Posted : Sunday, February 17, 2008 10:22:33 AM

Administration

Joined: 9/30/2004
Posts: 9,187
I don't think opacity is a property of the Paintbrush.
testOP2
Posted : Monday, February 18, 2008 1:15:45 PM

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
mdfalco
Posted : Monday, February 18, 2008 5:24:24 PM
Registered User
Joined: 8/30/2007
Posts: 33
thanks!
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.