Exporting transparent gradients

3 posts, 1 answers
  1. Chris
    Chris avatar
    7 posts
    Member since:
    Feb 2015

    Posted 12 Sep Link to this post

    Hi,

    Is it possible to generate PDFs containing transparent gradients?

    Setting the alpha component on a solid object (RgbColor) works as expected; it's not fully opaque and any colours behind the show though.  Setting the alpha component on GradientStops appears to have no effect; the colors are shown at full opacity

    This can be demonstrated with the API documentation example http://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/concepts/colors-and-color-spaces#patterncolor and simply changing the LinearGradient stops to include an alpha value that is less than 255:

    linearGradient.GradientStops.Add(new GradientStop(new RgbColor(10, 0, 207, 0), 0));
    linearGradient.GradientStops.Add(new GradientStop(new RgbColor(10, 0, 102, 204), 1));

    When rendered this shows a gradient with full opacity (attached) when it would be expected to be near transparent.

    Thanks,
    Chris

    UI for WPF R2 2016 SP1

  2. Answer
    Tanya
    Admin
    Tanya avatar
    405 posts

    Posted 15 Sep Link to this post

    Hello Chris,

    I tested the behavior and can confirm that the alpha channel is not respected. I added the issue to our backlog and you could subscribe to the related public item in order to track its progress. Your Telerik points are updated as a token of appreciation for reporting this.

    Regards,
    Tanya
    Telerik by Progress

  3. Chris
    Chris avatar
    7 posts
    Member since:
    Feb 2015

    Posted 16 Sep in reply to Tanya Link to this post

    Hi Tanya, thanks for investing the cause of the problem.  I'll track the fix progress.

     

    Chris

Back to Top