This is a migrated thread and some comments may be shown as answers.

Transparent color values in designer

3 Answers 77 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
skysailor
Top achievements
Rank 1
skysailor asked on 11 Mar 2008, 10:58 PM
Hi,
A number of forum posts and the online help mention that you can specify the alpha value for colors to make them transparent (or semi-transparent). They say just to enter a 4th number after the RGB values.

This does not always seem to work when entering the values into the properties of the RadChart control. For example if I enter "255,128,0,128" into the Appearance/FillStyle/MainColor it gets changed to "Purple" i.e. 128,0,128. It has stripped out the first number in the quartet. Whenever the Red value is 255 then it strips that value out.

Also the color swatch next to the values does not display the color correctly if there is an alpha value in there. e.g. If you enter "0,0,255,128" it should show half transparent blue. But ti shows white. Even entering "0,0,255,0" does not show blue.
Clayton.

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 12 Mar 2008, 08:56 AM
Hi Clayton,

Actually, the alpha value is the first number, not the fourth one.

Is it OK now?


All the best,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
skysailor
Top achievements
Rank 1
answered on 12 Mar 2008, 10:39 PM
Hi,
Thanks for that - my mistake.
However there seems to be some confusion in your documentation. I'm looking at the current Prometheus documentation for RadChart.

The section called "Setting The Background" under "Styling RadCharts" mentions Opacity and the greater the opacity value the less transparent it is. And then it shows the first value as transparency level 0-255. Is the number the transparency or the opacity? Is 0 fully transparent or fully opaque?

The section called "How do I make colors display with partial transparency" in the "How To" section says the first value is the transparency value as a percentage! It says that 80 means 80% transparent.

So now I'm a little confused...

Clayton.
0
Ves
Telerik team
answered on 14 Mar 2008, 12:56 PM
Hello Clayton,

The greater the value is, the less transparent the image becomes. That is -- 0 is fully transparent. As for the How-to help topic -- It seems we have made a mistake there - it is not 80% transparent, but the alpha channel has a value of 80, that is nearly two thirds transparent.

We will make sure this help topic is corrected. Your Telerik points have been updated.

Greetings,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (Obsolete)
Asked by
skysailor
Top achievements
Rank 1
Answers by
Dimo
Telerik team
skysailor
Top achievements
Rank 1
Ves
Telerik team
Share this question
or