Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
problem with TImage canvas
[b][red]This message was edited by GarryPaxton at 2004-11-15 3:33:43[/red][/b][hr]
[b][red]This message was edited by GarryPaxton at 2004-11-15 3:28:39[/red][/b][hr]
I have a TImage canvas onto which I draw a picture, using a variety of methods (loading a bitmap, flooding an drawing lines , etc). This is in Delphi 6.
However, the pictures I create can be various sizes, but the canvas seems always to be cropped at the original size it had at design time. So, if I drop a TImage on the form of 100 x 100, and then try to fillrect at some larger size, like 200 x 200, the resulting image remains cropped to 100 x 100.
The only way I can get round this is to set the TImage to be sized at design time to the largest possible picture size I ever intend to create. Unfortunately, if the TImage is larger than the desktop that causes a program interrupt (unless I make it Visible:=false, which kind of defeats the object).
Is there something I am doing wrong ? Does TImage need to be "initialsed" prior to use, or somehow "invalidated" to allow it to be resized ?
0 · ·