>
> 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@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@lists.lazarus-ide.org
> http://lists.lazarus-ide.org/listinfo/lazarus
>
>
-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to