Re: screen snapshot with Delphi
[ Post Followup ] [ DelphiLand FAQ ]
Posted by Rbrrneck on March 04, 2004 at 10:24:06:
In Reply to: screen snapshot with Delphi posted by meNeedHelp on January 28, 2004 at 13:04:53:
: How do i get a 'snapshot' of the whole screen then save it to a file (like *.bmp)?
Allthough there is a easyer way to do this, I forgot it:)
At the moment I recomend this:
Emulate a press on the "print screen " key on the keyboard.. using screen.width and screen.height create a new bitmap.. simply copy the data form the clipboard to the bitmap canvas...
: And how would i get only a part of the screen? Like only a small rectangle of a screen from 100,100 to 200,200?
when you get the bitmap above it's easy just to copy the part you want.. ie. create a canvas size 100*100 and copy the selected pixels from the main bitmap to the new smaller bitmap..
[ DelphiLand: free Delphi source code, tips, tutorials ]