<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head><body>
<p style="margin: 0pt;"><span><span></span></span></p>
<p style="margin: 0px; "></p>
<div style="margin: 5px 0px;">
<br/>Reimar Grabowski <reimgrab@web.de> hat am 16. April 2012 um 16:42 geschrieben:
<br/>
<br/>> Hi,
<br/>>
<br/>> I load a TLazIntfImage from disk, manipulate it and show it on my form in a TImage. Center, Proportional and Stretch properties of the TImage are set to true.
<br/>> Now I want to draw some overlays onto it (drawing to the canvas in the OnPaint event). Therefor I obviously need the origin and dimensions of the loaded image in 'canvas space', but I did not find a way to retrieve this information. Do I have to calculate them myself or can the TImage give me the needed information?
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">The image is painted to the area defined by the protected method DestRect.</p>
<p style="margin: 0px;">Maybe this can be made public. </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">At the moment you have to descend your own TImage class to access it or write a hack class (e.g. via a class helper).</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Mattias</p>
<p style="margin: 0px;"> </p>
</body></html>