<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Farooq Azam &#187; class</title>
	<atom:link href="http://www.farooqazam.net/tag/class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.farooqazam.net</link>
	<description>C# &#38; .NET Programming Blog</description>
	<lastBuildDate>Fri, 23 Jul 2010 20:15:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Screen Capture Class For C#</title>
		<link>http://www.farooqazam.net/screen-capture-class-for-c-sharp/</link>
		<comments>http://www.farooqazam.net/screen-capture-class-for-c-sharp/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 16:30:46 +0000</pubDate>
		<dc:creator>Farooq Azam</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[c sharp]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[screen capture]]></category>

		<guid isPermaLink="false">http://www.farooqazam.net/?p=106</guid>
		<description><![CDATA[A class that will help you take screenshots quickly and easily. Following are the features of this class: Take screenshot of the whole screen Take screenshot of a particular area using a Rectangle Copy the screenshot to Clipboard. Save the screenshot straight after it is captured. All popular image formats are supported. How to use? [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.farooqazam.net%2Fscreen-capture-class-for-c-sharp%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.farooqazam.net%2Fscreen-capture-class-for-c-sharp%2F&amp;source=farooqaaa&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignnone size-full wp-image-108" title="ScreenCapture" src="http://www.farooqazam.net/wp-content/uploads/2009/09/ScreenCapture.gif" alt="ScreenCapture" width="495" height="291" /></p>
<p>A class that will help you take screenshots quickly and easily.</p>
<p>Following are the features of this class:<span id="more-106"></span></p>
<ul>
<li>Take screenshot of the whole screen</li>
<li>Take screenshot of a particular area using a Rectangle</li>
<li>Copy the screenshot to Clipboard.</li>
<li>Save the screenshot straight after it is captured.</li>
<li>All popular image formats are supported.</li>
</ul>
<p><span id="more-103"> </span></p>
<h3>How to use?</h3>
<p>To import this class into your C# project all you have to do is to drag and drop the “ScreenCapture.cs” file into your project.</p>
<p>It is very simple to use this class. Here’s an overview of all the features:</p>
<pre class="brush: csharp;">// Add this code to the top of your code
// i.e: add it above &quot;public Form1() { ......&quot;

SC.ScreenCapture SC = new SC.ScreenCapture();

// To take a screenshot of the whole screen
// Use this code:

SC.CaptureScreen();

// If you want to save the screenshot straight after it is taken
// Use this code:
// Replace &quot;C:\\screenshot.jpg&quot; with your own path

SC.CaptureScreen(@&quot;C:\screenshot.jpg&quot;);

// To take screenshot of a particular area
// Use this code:
// Replace &quot;Rect&quot; with a Rectangle

SC.CaptureRectangle(Rect);

// To save the screenshot straight after it is taken
// Use this code:
// Replace &quot;C:\screenshot-rect.jpg&quot; with your own path and &quot;Rect&quot; with a rectangle.

SC.CaptureRectangle(Rect, &quot;C:\\screenshot-rect.jpg&quot;);

// Note: Use the code below after you've taken a screenshot.
// To copy the screenshot to Clipboard
// Use this code

SC.CopyToClipboard();
</pre>
<p>The above instructions showed you all the features this class offers. However, if you want to see this class in acton. Then I’ve made a simple application for you, which uses this class. Download the class alone or the sample application below:</p>
<h3>Dowload the ScreenCapture class and a sample application</h3>
<blockquote><p>ScreenCapture Class – <a title="Download ScreenCapture class" href="../source/ScreenCapture-class.zip"><strong>Download Now</strong></a> (1 Kb)</p>
<p>Sample Application – <a title="Download Sample Application" href="../source/ScreenCapture-sample.zip"><strong>Download Now</strong></a> (46 Kb)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.farooqazam.net/screen-capture-class-for-c-sharp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
