 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Enio Buenio Guest
|
Posted: Tue Apr 04, 2006 7:03 pm Post subject: how get an image from tpanel |
|
|
Hi to all.
I pass as parameter the Handle of a TPanel to one DLL and this DLL draw an
image in my TPanel.
I would like know how get this image from TPanel and put in a TImage.
thanks for all |
|
| Back to top |
|
 |
Ant Guest
|
Posted: Wed Apr 05, 2006 3:03 pm Post subject: Re: how get an image from tpanel |
|
|
canvas.CopyRect
"Enio Buenio" <enio (AT) uniplac (DOT) net> wrote in message
news:4432b1b7$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi to all.
I pass as parameter the Handle of a TPanel to one DLL and this DLL draw an
image in my TPanel.
I would like know how get this image from TPanel and put in a TImage.
thanks for all
|
|
|
| Back to top |
|
 |
Peter Below (TeamB) Guest
|
Posted: Wed Apr 05, 2006 7:03 pm Post subject: Re: how get an image from tpanel |
|
|
In article <4432b1b7$1 (AT) newsgroups (DOT) borland.com>, Enio Buenio wrote:
| Quote: | I pass as parameter the Handle of a TPanel to one DLL and this DLL draw an
image in my TPanel.
I would like know how get this image from TPanel and put in a TImage.
|
Why don't you directly pass the image.canvas.handle to the DLL? It is a HDC
in API lingo, not a HWND, and you should also pass the size of the
image.picture.bitmap, so the DLL knows the size of the drawing area it can
use. I would call SaveDC on the handle before you pass it to the DLL and
RestoreDC after the call returned, that guards against sloppy resource
handling in the DLL.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|