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

ppImage, Transparent color not honoured for Bitmap.

edited July 2012 in General
Hi,

I load a Delphi TImage with a Transparent Bitmap, and set transparency to
true.
The TImage displays correctly in delphi XE on a from at runtime, and
designtime.

I then assign this image to a ppImage in a report using the following code:
ppImage1.Picture.Assign(MainForm.Image1.Picture);

The Violet transparent color displays as a violet background, instead of as
transparent.

This also happens if I fille the ppImage1 at designtime with the Picture.
This in spite of the transparency set to true.

I then tried the following without effect:
ppImage1.Picture.Bitmap.TransparentColor := TColor($FF00FB);

Why does Delphi T-image honopur the transparency, by default, but the
ppImage does not for a Transparent Bitmap.

Regards

Adrian Wreyford

Comments

  • edited July 2012
    Hi Adrian,

    Which version of ReportBuilder and Delphi are you using?

    Are you seeing this behavior on screen or printed to the printer (or
    both). If you change printer drivers do you get the same behavior? As
    a test, try setting the Image.DirectDraw property to True and see if
    that helps.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.