screenshot of a portion of the screen?

_____z_____

New member
Joined
Nov 20, 2015
Messages
1
Programming Experience
1-3
I have created a C# snapshot application and I have finished developing it and came out with a lightweight screenshot program.
I am wondering a few things:
1. How do you take a screenshot of a portion of the screen?
2. What is a way to decrease resolution of image?
I have put the program itself up for download here:
<link to binary removed by moderator>
and source code here:
https://www.mediafire.com/?ribnqbv8fex81zg
 
1. How do you take a screenshot of a portion of the screen?
The Graphics.CopyFromScreen method let's you specify the location and size of the area to copy. Create a Bitmap object of the desired size, call Graphics.FromImage and away you go.
2. What is a way to decrease resolution of image?
I'm not 100% sure but I think you'll find that the Graphics.DrawImage method will do that, which you call to draw one Image object onto another.
 
Back
Top Bottom