I need to plot some coordinates by drawing a symbol on a map, in a image on a report, preferably in runtime in RAP code. Is this possible? Can i access the image.canvas and use the drawingcapabilities of the canvas?
Access to the canvas of an image is not built-in to RAP. You would need to create a passthru function to do so.
Another option is to use the TppPaintBox component to draw directly to the report canvas. TppPaintBox includes most of the basic drawing routines in RAP so you could first draw your image then manually draw the symbols. See the help for TppPaintBox and the ppPaintBox.pas file for more info. Also the following article shows how to use the component.
Comments
Access to the canvas of an image is not built-in to RAP. You would need
to create a passthru function to do so.
Another option is to use the TppPaintBox component to draw directly to
the report canvas. TppPaintBox includes most of the basic drawing
routines in RAP so you could first draw your image then manually draw
the symbols. See the help for TppPaintBox and the ppPaintBox.pas file
for more info. Also the following article shows how to use the component.
http://www.digital-metaphors.com/rbWiki/RCL/Fundamentals/How_To...Use_the_PaintBox_Component
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com