| View previous topic :: View next topic |
| Author |
Message |
qyte Guest
|
Posted: Wed Jun 22, 2005 5:28 pm Post subject: TJPEGImage or TBitmap resizing??? |
|
|
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
|
Posted: Thu Jun 23, 2005 7:49 am Post subject: Re: TJPEGImage or TBitmap resizing??? |
|
|
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 |
|
 |
|