Lazarus
Programming => Graphics and Multimedia => Graphics => Topic started by: faber on August 18, 2010, 11:37:45 am
-
How to get stretched picture from TImage ?
I need TPicture (Image1.Picture.Bitmap), but when I take Picture.Bitmap I get orginal picture (loaded from file). I need a bitmap that TImage current shows (in my case stretched).
-
Just copy the bitmap to another one and then stretch it yourself.
-
How to get stretched picture from TImage ?
I need TPicture (Image1.Picture.Bitmap), but when I take Picture.Bitmap I get orginal picture (loaded from file). I need a bitmap that TImage current shows (in my case stretched).
Hello,
You can download sources from http://sourceforge.net/projects/thetvdbartcut/ and inside there are some strenched copies from a base image.
-
There is an example here:
http://www.lazarus.freepascal.org/index.php/topic,8282.msg39786.html#msg39786
This is a bit more than what you need, because it ist "zooming" an area of Image1 to Image2, but the principle is the same.
-
Thanks. Image1.Picture.Bitmap.Canvas.StretchDraw - this is what I was looking for.