Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

Transparent PNG

edited December 2014 in Devices
Hello

I want export a report to PNG image with some transparent areas. Is this
possible? TppImage has a Transparent property, I changed to True but
generated report (png image hasn´t transparency).

Is this the normal behaviour? In that case, can I modify the TppImage
content and set my report´s (image) Transparency?
May be there is some example about this ... ?

Thanks

Benitez

Comments

  • edited December 2014
    Hi Benitez,

    Which version of ReportBuilder and Delphi are you using?

    The PDF device does support image transparency by using the top left
    pixel as the transparency color.

    It does not currently support advanced single-pixel or alpha channel
    transparency that PNG images are capable of.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2014
    Thanks Nico, I am using 14.07.

    I see Transparent property doesn´t help me but Can I do anything for force
    output png image trnasparency?. For example, Can I change the bitmap canvas
    for my proposal in some event, may be OnPrintingComplete or other?

    I think

    Lenny Miranda


  • edited December 2014
    Hi Lenny,

    I apologize if I misunderstood your initial question. I see now that
    you are exporting your entire report to a PNG file (or files) and would
    like some transparent areas.

    There is currently no way to include transparent areas of a report
    exported to and image file. You would need to load the exported page
    image into an image editor to define any transparency.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2014
    OK. Thanks.


This discussion has been closed.