[Lazarus] TForm.GetFormImage is broken?

Balázs Székely getmem1 at gmail.com
Tue Dec 27 11:17:38 CET 2016


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

That's a good idea. The current behavior is confusing.

On Tue, Dec 27, 2016 at 1:40 AM, Werner Pamler via Lazarus <
lazarus at lists.lazarus-ide.org> wrote:

> 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?
>
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus-ide.org
> http://lists.lazarus-ide.org/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161227/4d6af2fe/attachment.html>


More information about the Lazarus mailing list