Drawing on Canvas of ppImage component
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.
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.
This discussion has been closed.
Comments
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).
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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)?
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com