Hello,
I have an image which is when assigned to TBitmap comes us so large that user cannot see the whole image. Currently I am using this code:
MyBitmap := TBitmap.Create;
ImageEnViewMain.CurrentLayer.Bitmap.CopyToTBitmap(MyBitmap);
For that I think I will have to use RenderToTBitmap to get ImageEn to render the image to TBitmap at a given size. I trying the following code but it is not getting compiled.
ImageEnViewMain.CurrentLayer.Bitmap.RenderToTBitmap(MyBitmap,0,0,rect,0,0,640,660,0,0,640,660,true,False,0,rfNone,True);
Is there any sample that show as to how we can use it?
I also want to maintain the aspect ratio of the original image.
TIA
Yogi Yang