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

images and tranparency

edited December 2008 in General
Using report builder to print high quality images to a 5x7 professional
photo printer. It is working great.

Can make labels transparent but also want to make images transparent so I
can include various boarders.

How can I do this?

Bruce
bruce@brilliantdata.com

Comments

  • edited December 2008
    Hi Bruce,

    Images can be rendered transparent using the Transparent property of the
    TppImage component. What type of images are you using?

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2008
    Thanks for your quick response

    I see the transparent property for the image and have set it to true but is
    there a transparent color property (as you have in pplabels)? It seems the
    transparent color is white (255,255,255) but I am getting bleed thru on the
    colors that are close to white but not pure white. Is it possible that the
    transparent colors are a range and not a single color?

    Additional point if transparency is a range of colors and not a single color
    that is even better for me as long as I can set the transparent color range.
    This would allow me to do some green screen functions with the prints.


    Thanks

    Bruce


  • edited December 2008


    By default TBitmap autodetects the transparent color as the bottom left most
    pixel. (TppImage.Picture.Bitmap is of type TBitmap. )

    You can take more control over this by setting the TBitmap properties for
    TransparentColor and TransparentMode.

    See the Delphi help for more details.

    If your images are are not bitmaps, RB will convert them to bitmaps prior to
    rendering them. To take more control, you could try writing some code to
    convert them to bitmaps so you can control the transparent color.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.