<?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>StepSix &#187; Josh</title>
	<atom:link href="http://stepsix.org/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://stepsix.org</link>
	<description></description>
	<lastBuildDate>Fri, 11 Jun 2010 07:32:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>WIA Series delay</title>
		<link>http://stepsix.org/2010/05/05/wia-series-delay/</link>
		<comments>http://stepsix.org/2010/05/05/wia-series-delay/#comments</comments>
		<pubDate>Wed, 05 May 2010 15:50:44 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Programing]]></category>

		<guid isPermaLink="false">http://stepsix.org/?p=109</guid>
		<description><![CDATA[I&#8217;m sorry that I haven&#8217;t continued my WIA series yet. I have been quite busy with my classes this quarter. Ill try an get some time in this weekend to work on the next article, so I might be able &#8230; <a href="http://stepsix.org/2010/05/05/wia-series-delay/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sorry that I haven&#8217;t continued my WIA series yet. I have been quite busy with my classes this quarter. Ill try an get some time in this weekend to work on the next article, so I might be able to get it posted next week some time.</p>
<p>Next week&#8217;s article should cover setting properties for your scanner including DPI and switching between color and black and white modes as well as getting other information from the scanner.</p>
<p><strong>Update: </strong>Ill be getting to the new WIA article in short oder. This last quarter was very busy so I apologize for taking so long.</p>
]]></content:encoded>
			<wfw:commentRss>http://stepsix.org/2010/05/05/wia-series-delay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An intro to WIA (Windows Image Acquisition) in C# (Part 1)</title>
		<link>http://stepsix.org/2010/03/31/an-intro-to-wia-windows-image-acquisition-in-c-part-1/</link>
		<comments>http://stepsix.org/2010/03/31/an-intro-to-wia-windows-image-acquisition-in-c-part-1/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 04:29:22 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Programing]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[C♯]]></category>
		<category><![CDATA[WIA]]></category>

		<guid isPermaLink="false">http://stepsix.org/?p=56</guid>
		<description><![CDATA[Windows Image Acquisition is a platform for accessing images from cameras, scanners, and webcams. Recently I’ve been working on a project that involves a scanner. As it turns out for basic use WIA is very easy to use, however once &#8230; <a href="http://stepsix.org/2010/03/31/an-intro-to-wia-windows-image-acquisition-in-c-part-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Windows Image Acquisition is a platform for accessing images from cameras, scanners, and webcams. Recently I’ve been working on a project that involves a scanner. As it turns out for basic use WIA is very easy to use, however once you attempt to do more advanced things the friendly resources begin to dwindle leaving you with the cold emotionlessness of MSDN. However, this being my first major project I refused to give up and finally found out how to do almost everything I wanted to do. In this post, the first of this series, I’ll talk about acquiring an image from a flatbed scanner.</p>
<p><span id="more-56"></span></p>
<p>First let’s start by looking at the easiest way to acquire an image from a scanner. Begin by adding a reference to the Microsoft Windows Image Acquisition Library v2.0, this can be found under COM.</p>
<p>Don’t forget to put the proper using statement at the top of your code.</p>
<pre class="brush:csharp">using WIA;</pre>
<p>Before we create our scanning function we need to create two objects, one for access to WIA’s common dialogs and another to hold our image after it is scanned.</p>
<pre class="brush:csharp">CommonDialog dialog = new WIA.CommonDialog();
ImageFile scannedImage = null;</pre>
<p>Now let’s create a function to scan our document and save it.</p>
<pre class="brush:csharp">void Scan()
{
    scannedImage = dialog.ShowAcquireImage(
                        WiaDeviceType.ScannerDeviceType,
                        WiaImageIntent.UnspecifiedIntent,
                        WiaImageBias.MaximizeQuality,
                        FormatID.wiaFormatPNG,
                        true, true, false);
    scannedImage.SaveFile("scannedImage.png");
}</pre>
<p>As if by magic when Scan() is called a wizard appears and walks you through scanning a document. If you are acquiring only one image and don’t want any further customization to the interface then you can stop here and you won’t be missing anything.</p>
<p>However I found this wizard to be too slow. I wanted my users to be able to click one button and have the scanner jump into action.</p>
<p>To start we need to add two more WIA objects to our code. A DeviceManger object and a device object.</p>
<pre class="brush:csharp">DeviceManager deviceManager = new DeviceManagerClass();
Device scanner = null;</pre>
<p>WIA has another really nice dialog in its CommonDiolog class that allows the user to select a Device and the dialog will actually return the device for you.</p>
<pre class="brush:csharp">scanner = dialog.ShowSelectDevice(
          WiaDeviceType.ScannerDeviceType, false, false);</pre>
<p>Now that you have the device selected lets modify our Scan() method to scan with our newly selected device.</p>
<pre class="brush:csharp">Void Scan()
{
    Item item = device.Items[1];
    scannedImage = dialog.ShowTransfer(item,
                   FormatID.wiaFormatPNG, false) as ImageFile;
    scannedImage.SaveFile(“scannedImage.png”)
}</pre>
<p>Now we are back where we were before but this time running the Scan() method will tell the scanner to immediately start scanning and our user won’t have to sit though a multipage wizard.</p>
<p>I think this is a good point to stop for now. In a little while Ill post the second part to this post covering how to change properties such as DIP and switching between grayscale and color.</p>
]]></content:encoded>
			<wfw:commentRss>http://stepsix.org/2010/03/31/an-intro-to-wia-windows-image-acquisition-in-c-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Whats up Doc?</title>
		<link>http://stepsix.org/2010/03/30/whats-up-doc/</link>
		<comments>http://stepsix.org/2010/03/30/whats-up-doc/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 06:02:09 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[C♯]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://stepsix.org/?p=57</guid>
		<description><![CDATA[So I thought before I get to posting anything ground breaking (ok I might be getting a bit ahead of my self) I thought I would bore everybody with this completely useless and utterly dull post. Semi-recently I began using &#8230; <a href="http://stepsix.org/2010/03/30/whats-up-doc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So I thought before I get to posting anything ground breaking (ok I might be getting a bit ahead of my self) I thought I would bore everybody with this completely useless and utterly dull post. Semi-recently I began using C#. I have really began to enjoy using it if anything because of how tightly it is integrated with Visual Studio 2008 (my current IDE of choice) and MSDN. That is not to say that it would replace other languages for me but that I prefer the ease of programing in C#. I still love PHP and with php.net I have a great resource at my fingertips much like how MSDN complements my work in C#. However for Windows focused programing I find my self preferring C# over C++ due to the ease of producing useful code quickly. This is in no way saying I dislike C++&#8230; it was my first real programing language (sorry PHP but you&#8217;re still just a scripting language) and thanks to learning how to use it I am able to be as productive as I am in C#, I just wish I knew of more quality resources for programing in C++.</p>
<p>Well cheers everyone thats all I got for you today. Come back in a bit when Ill attempt to write an introduction to WIA in C#.</p>
]]></content:encoded>
			<wfw:commentRss>http://stepsix.org/2010/03/30/whats-up-doc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

