65.9K
CodeProject is changing. Read more.
Home

ScreenCapture Utility

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.33/5 (8 votes)

Jun 2, 2006

CPOL
viewsIcon

51961

downloadIcon

1949

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