Click here to Skip to main content
15,884,939 members
Articles / Programming Languages / C#
Article

ScreenCapture Utility

Rate me:
Please Sign up or sign in to vote.
3.33/5 (8 votes)
2 Jun 2006CPOL1 min read 51K   1.9K   32   11
A utility to capture a portion of the screen
Sample Image - ScreenCapture.jpg

Introduction

I needed a screen capture utility and was tired of the 30 day evaluation versions of commercial products, so I decided to develop one. This article presents the result.

I have used pure C# code, no unmanaged code at all.

My Requirements

  1. To enable capture of a selectable rectangle on the screen
  2. To support all major image formats
  3. Need to be simple and intuitive

Usage

  1. Run the application.
  2. Press the capture button. Now ScreenCapture will disappear and you will get a dimmed image of the screen.
  3. Move the cursor to the top left corner of the screen area you want to capture and press the left mouse button.
  4. Move the curser to the right bottom corner of the screen area you need to capture and release the left mouse button. During this operation, a selection area will be seen.
  5. Now the captured area is displayed in the ScreenCapture.
  6. You can save it to file by pressing the Save button.
  7. You can change the way the image is displayed by selecting a different mode in the toolbar ComboBox.

Conclusion

The screen capturing utility was easy to write!

History

  • 2nd June, 2006: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generalnice job Pin
spiralarchitect19-Oct-07 11:27
spiralarchitect19-Oct-07 11:27 
GeneralManual Drawing Pin
MatrixCoder7-Jan-07 9:52
MatrixCoder7-Jan-07 9:52 
GeneralRe: Manual Drawing Pin
Yoramo15-Jan-07 21:38
Yoramo15-Jan-07 21:38 
GeneralExports JPGs only Pin
WilBu6-Jun-06 11:46
WilBu6-Jun-06 11:46 
GeneralRe: Exports JPGs only Pin
Yoramo7-Jun-06 3:55
Yoramo7-Jun-06 3:55 
thanks for your comment.
your perfectly right I will update the zip with the correct code.


GeneralI love it [modified] Pin
ryanoc3332-Jun-06 7:26
ryanoc3332-Jun-06 7:26 
GeneralRe: I love it [modified] Pin
Yoramo2-Jun-06 9:47
Yoramo2-Jun-06 9:47 
GeneralRe: I love it [modified] Pin
ryanoc3332-Jun-06 10:02
ryanoc3332-Jun-06 10:02 
GeneralRe: I love it [modified] Pin
Yoramo2-Jun-06 11:38
Yoramo2-Jun-06 11:38 
QuestionI'm spoiled Pin
Ben Ratzlaff2-Jun-06 7:09
professionalBen Ratzlaff2-Jun-06 7:09 
AnswerRe: I'm spoiled Pin
Yoramo3-Jun-06 7:01
Yoramo3-Jun-06 7:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.