[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 ?