Mar 11, 2004 #1 Spent Programmer Mar 20, 2003 100 BG I have a TScrollBox which uses 1/4 of the form.Is it possible to capture screenshot not on the whole screen but only on the ScrollBox. Spent mail:spentbg@yahoo.com
I have a TScrollBox which uses 1/4 of the form.Is it possible to capture screenshot not on the whole screen but only on the ScrollBox. Spent mail:spentbg@yahoo.com
Mar 12, 2004 #2 VintageWine IS-IT--Management Sep 18, 2002 191 GB One possibility like: with Image1 do begin SetBounds(Left,Top,ScrollBox1.Width,ScrollBox1.Height); ScrollBox1.PaintTo(Image1.Canvas,0,0); end; Image1.Picture.SaveToFile('c:\temp\scrollbox1.bmp'); Have fun Simon Upvote 0 Downvote
One possibility like: with Image1 do begin SetBounds(Left,Top,ScrollBox1.Width,ScrollBox1.Height); ScrollBox1.PaintTo(Image1.Canvas,0,0); end; Image1.Picture.SaveToFile('c:\temp\scrollbox1.bmp'); Have fun Simon