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

Drawing on Canvas of ppImage component

edited September 2003 in General
On a form I had a TImage component and I was drawing a picture (basic
rectangles only) by using the Canvas property. Now, I want to use the same
drawing logic to draw an image on a report using a ppImage component.
However, for some reason, the ppImage component does not have a Canvas
property. What am I missing here? How do I draw on Canvas of ppImage
component on a report?

I am using ReportBuilder 6.03 with Delphi 6 SP2.

Comments

  • edited September 2003
    Hi,

    There is a third party addon named TwPaintbox available for download from
    our website that allows you to draw directly to the report cavas. You can
    find this component in the friends | rcl section of our website
    (http://www.digital-metaphors.com).

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2003
    I will check into that.

    Does your recommendation to look into the third party addon indicate that I
    cannot, in fact, draw on the Canvas of a TppImage component (the way I can
    on the Canvas of a TImage component)?

  • edited September 2003
    Hi,

    The TppImage does not contain its own Canvas to draw to like the TImage
    does. This component streams the images which is later drawn to a canvas
    with the Screen device or DrawCommand. See the TppScreenDevice class in the
    ppViewr.pas file or TppDrawImage class in the ppDrwCmd.pas file for the
    code.

    --
    Best Regards,

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