Transparent color values in designer

Thread is closed for posting
4 posts, 1 answers
  1. skysailor
    skysailor avatar
    113 posts
    Member since:
    Jul 2007

    Posted 11 Mar 2008 Link to this post

    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.
  2. Answer
    Dimo
    Admin
    Dimo avatar
    8478 posts

    Posted 12 Mar 2008 Link to this post

    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
  3. skysailor
    skysailor avatar
    113 posts
    Member since:
    Jul 2007

    Posted 12 Mar 2008 Link to this post

    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.
  4. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 14 Mar 2008 Link to this post

    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
Back to Top