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 

TJPEGImage or TBitmap resizing???

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
qyte
Guest





PostPosted: Wed Jun 22, 2005 5:28 pm    Post subject: TJPEGImage or TBitmap resizing??? Reply with quote



Is there a way to resize a TJPEGImage or a TBitmap?
i was wondering of the following.

if i assing a TJPEGImage to a TImage
with TJpegImage (640*480) and TImage (320*240 strech=true)

is it possible to reassign the bitmap desplayed by the
TImage again to the TJpegImage so that i resize it or will
i get back the same image??? Can i get somehow the resized image
desplyed by TImage?
Back to top
Hans Galema
Guest





PostPosted: Thu Jun 23, 2005 7:49 am    Post subject: Re: TJPEGImage or TBitmap resizing??? Reply with quote



qyte wrote:
Quote:
Is there a way to resize a TJPEGImage or a TBitmap?

Yes. Beginning with a Graphics::TBitmap. Load the original
in a Graphics::TBitmap then make a second Graphics::TBitmap
with the rigth dimensions. Then StretchDraw the first to the second.

For a TJPEGImage: Assign that to a Graphics::TBitmap. Resize and
assign back.

Quote:
i was wondering of the following.

if i assing a TJPEGImage to a TImage
with TJpegImage (640*480) and TImage (320*240 strech=true)

is it possible to reassign the bitmap desplayed by the
TImage again to the TJpegImage so that i resize it or will
i get back the same image???

That is not possible with a simple command.

Quote:
Can i get somehow the resized image
desplyed by TImage?

Yes. You can always make a new Graphics::TBitmap and BitBlt the
Canvas of the TImage to the Canvas of the bitmap.

Hans.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.