BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how get an image from tpanel

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Enio Buenio
Guest





PostPosted: Tue Apr 04, 2006 7:03 pm    Post subject: how get an image from tpanel Reply with 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
Ant
Guest





PostPosted: Wed Apr 05, 2006 3:03 pm    Post subject: Re: how get an image from tpanel Reply with quote



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





PostPosted: Wed Apr 05, 2006 7:03 pm    Post subject: Re: how get an image from tpanel Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.