<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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?</blockquote><div>That's a good idea. The current behavior is confusing. <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 27, 2016 at 1:40 AM, Werner Pamler via Lazarus <span dir="ltr"><<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <blockquote type="cite">
      <div dir="ltr">Please try this:<br>
        <div>var<br>
            bmp: TBitmap;<br>
          begin<br>
            bmp:=Form1.GetFormImage;<br>
            try<br>
              <b>bmp.Canvas.Changed;</b><br>
             
          bmp.SaveToFile(<wbr>ExtractFilePath(Application.<wbr>ExeName)+'form.bmp');<br>
            finally<br>
              FreeAndNil(bmp);<br>
            end;<br>
          end;      <br>
        </div>
      </div>
    </blockquote>
    <br></span>
    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?<br>
    <br>
    <br>
  </div>

<br>--<br>
______________________________<wbr>_________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus-ide.org">Lazarus@lists.lazarus-ide.org</a><br>
<a href="http://lists.lazarus-ide.org/listinfo/lazarus" rel="noreferrer" target="_blank">http://lists.lazarus-ide.org/<wbr>listinfo/lazarus</a><br>
<br></blockquote></div><br></div>