[Lazarus] TForm.GetFormImage is broken?

Werner Pamler werner.pamler at freenet.de
Tue Dec 27 00:40:02 CET 2016


> Please try this:
> var
>   bmp: TBitmap;
> begin
>   bmp:=Form1.GetFormImage;
>   try
> *bmp.Canvas.Changed;*
> bmp.SaveToFile(ExtractFilePath(Application.ExeName)+'form.bmp');
>   finally
>     FreeAndNil(bmp);
>   end;
> end;

But Delphi does not require the bmp.Canvas.Changed. Shouldn't it be 
added to the GetFormImage internally to make this simple code 
Delphi-compatible?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161227/390d23ec/attachment-0001.html>


More information about the Lazarus mailing list