<div dir="ltr">Hi!<div><br></div><div>Currently I'm trying to use TForm.GetFormImage method to make a minimap (something similar to Sublime Text editor) of a big form (the parent of this big form is a TScrollbox on this application).</div><div><br></div><div>But, using Qt or GTK2, Lazarus 1.6.3 or trunk, I got the same black bitmap. </div><div><br></div><div>So, I created a empty application (just one form with some buttons) and the result is the same.</div><div><br></div><div>The code that should make a screenshot of my form is:</div><div><br></div><div><div>procedure TForm1.Button3Click(Sender: TObject);</div><div>var</div><div> bmp: TBitmap;</div><div>begin</div><div> bmp:=Form1.GetFormImage;</div><div> try</div><div> bmp.SaveToFile(ExtractFilePath(Application.ExeName)+'form.bmp');</div><div> finally</div><div> FreeAndNil(bmp);</div><div> end;</div><div>end; </div><div><br></div><div>Am I using the method GetFormImage right?</div><div><br></div><div>If yes, what's the alternative method to make a screenshot of a form?</div><div><br></div><div>Should I fill a bug report for this issue?</div><div><br></div>-- <br><div class="gmail_signature">The best regards,<br><br>Fabio Luis Girardi<br>PascalSCADA Project<br><a href="http://sourceforge.net/projects/pascalscada" target="_blank">http://sourceforge.net/projects/pascalscada</a><br><a href="http://www.pascalscada.com" target="_blank">http://www.pascalscada.com</a></div>
</div></div>