Page Rank

Subscribe

Categories

Recent posts

Alexa Rank

Capture screenshot from Desktop and crop it in C#


  • This topic explains about how to capture screenshot from desktop and crop it in C#.
  • Here we need only a PictureBox control in C# to capture screenshot from Desktop and crop it.
  • When we first click the Button, it Capture screenshot from Desktop.
  • Then again we click the Button; it crops the captured screenshot from Desktop into size that we specified.

PictureBox ClassCapture screenshot from Desktop and crop it in C#

  • PictureBox class represents a Windows picture box control for displaying an image.

Namespace:  System.Windows.Forms

Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

  • Syntax

Code to display an Image:


  • Through the above code we are loading image to the Image Property of the PictureBox Control.

Bitmap ClassCapture screenshot from Desktop and crop it in C#

  • Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes. A Bitmap is an object used to work with images defined by pixel data.

Capture screenshot from Desktop and crop it in C#Complete Code

Capture screenshot from Desktop and crop it in C# - Capture 1

Capture screenshot from Desktop and crop it in C# – Capture 1

Capture screenshot from Desktop and crop it in C# - Capture and cropped

Capture screenshot from Desktop and crop it in C# – Capture and cropped

 

Capture screenshot from Desktop and crop it in C#


VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">