Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/7/2004 Posts: 816
|
How do I reduce the opacity of a real code paint scheme - and if I'm using "user input" statements to control the color - how do I see what the color actually is without trying each and every color?
Is there some kind of color name available when I mouse over the colors?
Regards
Bob Mc
|
|
Administration
Joined: 9/18/2004 Posts: 3,522
|
Look into the vb.net Color.FromARGB call. The Alpha value is the opacity. 255 is opaque, 0 is transparent.
Ken Gilb (Kuf) Chief Software Engineer - Worden Brothers Inc. Try/Catch - My RealCode Blog
|
|
Registered User Joined: 10/7/2004 Posts: 816
|
I don't understand how to use this?
Look into the vb.net Color.FromARGB call.
When I look at the drop down list of colors - they have names - where do I get the RGB values?
It would be better if you can give me a detailed example - I get the "A" = opacity part but don't have aclue as to how to use what you said
Regards
Bob Mc
|
|
Administration
Joined: 9/18/2004 Posts: 3,522
|
The coloring is a standard VB.net syntax. The drop down list is a short cut to pre-defined colors (RGB values). R = Red, G = Green, B = Blue. Color.Red = Color.FromARGB(255,255,0,0). Color.Blue = color.FromARGB(255,0,0,255)
You can use the built in windows program "Paint" to get RGB values for colors or you can use an online color picker.
Ken Gilb (Kuf) Chief Software Engineer - Worden Brothers Inc. Try/Catch - My RealCode Blog
|
|
Platinum Customer
Joined: 10/7/2004 Posts: 357
|
I like this one: if you search for RGB there are lots and lots and lots.........
http://www.tayloredmktg.com/rgb/
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The following topics all contain example RealCode using .fromARGB():
Plot value NaN?
Volume Surge Gradient Painting
real code change for opacity of volume bars
Overlayng vol bars on price pane
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/7/2004 Posts: 816
|
Thanks runningdawg
Thats cool and easy
Regards
BobMc
|
|
Registered User Joined: 10/7/2004 Posts: 816
|
Thanks Bruce
very comprehensive - now I just have to understand it
Regards
Bob Mc
|
|
Guest-1 |