<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>Thomas Pusztai's Weblog</title>
    <link rel="self" type="application/xml" href="http://tommazzo.com/Atom.aspx" />
    <subtitle type="html">Writing about Sports, Computers and other things in life</subtitle>
    <id>http://tommazzo.com/Default.aspx</id>
    <author>
        <name>Thomas Pusztai aka tommazzo</name>
        <uri>http://tommazzo.com/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 1.9.5.177">Subtext</generator>
    <updated>2008-02-03T02:23:20Z</updated>
    <entry>
        <title>MultiScan the second</title>
        <link rel="self" type="text/html" href="http://tommazzo.com/archive/2008/02/02/multiscan-the-second.aspx" />
        <id>http://tommazzo.com/archive/2008/02/02/multiscan-the-second.aspx</id>
        <published>2008-02-02T16:39:1701:00:00</published>
        <updated>2008-02-03T02:23:20Z</updated>
        <content type="html">&lt;p&gt;In my &lt;a href="http://www.tommazzo.com/archive/2008/01/19/scanning-and-vista.aspx"&gt;last entry&lt;/a&gt; I introduced you to MultiScan, the little scanning utility I wrote to improve my scanning experience on Vista (which also works on XP btw). In the comments to this entry someone made some suggestions for improvement (thank you once again). I really don't mean to turn this program into a big project, but the suggested improvements are mostly not difficult to implement and could benefit the user experience a lot. Thus I decided today to sit down a little to add those improvements and squash a few bugs I noticed. The requirements stay the same, Windows XP SP1 or higher and .NET Framework 2.0 - and of course a scanner ;) Here are the downloads:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.tommazzo.com/downloads/MultiScan-bin.zip"&gt;Binary&lt;/a&gt; (332kb)     &lt;br /&gt;
&lt;a href="http://www.tommazzo.com/downloads/MultiScan-source.zip"&gt;C# Source Code&lt;/a&gt; (442 kb)&lt;/p&gt;
&lt;p&gt;Changes in detail:&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Added checkbox to keep the selected area across new scans &lt;/li&gt;
    &lt;li&gt;Added checkbox to select whether the scanned pages should be cleared after saving &lt;/li&gt;
    &lt;li&gt;Added button to allow manual clearing of the scanned pages &lt;/li&gt;
    &lt;li&gt;Added quality selection dialog for JPEG saving &lt;/li&gt;
    &lt;li&gt;Fixed a bug that caused the selected area to get messed up when rotating the selection left &lt;/li&gt;
    &lt;li&gt;Fixed a bug that caused the selection to shrink when scanning with higher DPI &lt;/li&gt;
    &lt;li&gt;Fixed the saving of the window size. The application should now start with the same window size it had when it was last closed. &lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://tommazzo.com/aggbug/4.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://tommazzo.com/comments/4.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://tommazzo.com/comments/commentRss/4.aspx</wfw:commentRss>
        <trackback:ping>http://tommazzo.com/services/trackbacks/4.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Scanning and Vista</title>
        <link rel="self" type="text/html" href="http://tommazzo.com/archive/2008/01/19/scanning-and-vista.aspx" />
        <id>http://tommazzo.com/archive/2008/01/19/scanning-and-vista.aspx</id>
        <published>2008-01-19T16:44:3601:00:00</published>
        <updated>2008-01-19T17:03:25Z</updated>
        <content type="html">&lt;p&gt;Since I started using Windows Vista the comfort when using my scanner has greatly decreased. The scanner is an HP 3770 and HP only offers pre-Vista software for it. I always liked the HP scanning application a lot (only the scanning program itself, not the dozen other applications that come with it) since it allowed me to scan multiple pages right after each other and then save them in one go. It even allows you to save all scanned pages to a PDF document if you have Adobe Acrobat installed. It also had support for certain filters, such as descreening. The default Vista scanning application is a lot simpler, but not bad at all. I really don't need any fancy features, but the one thing I do need is the ability to scan multiple pages without saving one page and then restarting the application - it is just so annoying. I also don't scan a lot, but a few weeks ago some multi page scans did come together and I was really annoyed. And what do you do if you are annoyed with a problem and the available software doesn't work? - right, you write your own!&lt;/p&gt;  &lt;p&gt;Most current scanning software uses Windows Image Acquisition to communicate with the scanner. That's what I did as well. I used the WIA Automation Layer, an easy to use COM library, which deals with all the lower level stuff for you. All you have to do is connect to a scanner by showing the WIA device selection dialog or by searching for it using its GUID and then make a call to the device.Items[1].Transfer() method and that's it. So I wrapped this and some scanner properties in a class of my own and built a UI around it.&lt;/p&gt;  &lt;p&gt;So far so good, but I must say that I was a little shocked when I saw that the UI froze during the scanning process even though I was invoking the Transfer() method asynchronously. The it occurred to me that by default all Windows Application projects created with Visual Studio have the STAThread (single-threaded apartment) attribute applied to their Main method. I'm not a COM expert, but from what I understand this means that a certain COM object only executes on a single thread. If a method is invoked from another thread the call is passed to the object through a standard window message in the queue of the appropriate thread. That thread is my main application thread.&lt;/p&gt;  &lt;p&gt;One way to overcome this is to run in a multi-threaded apartment, which does solve the blocking of the UI, but causes the save file dialog to no longer work. This left me with three options: either stay in a MTA and find an alternative to the SaveFileDialog, find another way to execute the scanning process asynchronously or simply accept the blocked UI, because the first two options are too much work for a simple application that I write mostly for my own use. As you can imagine, I went with the latter - it's a simple scanning program and changing something in the UI while it's scanning doesn't make sense anyway (I know that this isn't the proper way to do it, but I don't intend to distribute this application that widely anyway).&lt;a href="http://tommazzo.com/images/tommazzo_com/WindowsLiveWriter/ScanningandVista_1A9C/MultiScan_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="480" alt="MultiScan" src="http://tommazzo.com/images/tommazzo_com/WindowsLiveWriter/ScanningandVista_1A9C/MultiScan_thumb.jpg" width="638" align="right" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I already said that I liked the idea of directly saving multiple pages to PDF, the only problem is, I don't own Adobe Acrobat, but I still thought that this would be a cool feature. Since there are dozens of free PDF libraries out there it wasn't a big problem either. I took a look at some of them and in the end went with &lt;a href="http://www.pdfsharp.com/"&gt;PDFSharp&lt;/a&gt; and with just a few lines of code I could save scans as PDF documents.&lt;/p&gt;  &lt;p&gt;If you are interested in trying out this little scanning application that I simply named after its purpose (that is conveniently scanning multiple pages) MultiScan, or if you want to take a look at the source code, here are the download links: (The program also works on Windows XP SP1 and beyond)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://tommazzo.com/downloads/MultiScan-bin.zip"&gt;Binary&lt;/a&gt; (332 kb)     &lt;br /&gt;&lt;a href="http://tommazzo.com/downloads/MultiScan-source.zip"&gt;Source Code&lt;/a&gt; (441 kb)&lt;/p&gt;  &lt;p&gt;On the right you can see a screenshot.  The UI is very simplistic. One thing that might be a little un-intuitive is that after you've pressed "New Scan" and made your selection in the preview pane, you have to click "Accept Selection". This will save the selection to a temporary file and add it to your scanned page collection. This will not make the scanner start scanning again, it will just copy the selected area of the already scanned preview image to a temporary file. The preview image is scanned in full quality, thus it would be a waste of time to start up the scanner again for the final image. Once you have scanned all the pages you want, you can choose to save your work as either PNG, JPEG, BMP, Multi-page TIFF or PDF.&lt;/p&gt;&lt;img src="http://tommazzo.com/aggbug/3.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://tommazzo.com/comments/3.aspx</wfw:comment>
        <slash:comments>12</slash:comments>
        <wfw:commentRss>http://tommazzo.com/comments/commentRss/3.aspx</wfw:commentRss>
        <trackback:ping>http://tommazzo.com/services/trackbacks/3.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Virtual Photo Organizer Development ceased</title>
        <link rel="self" type="text/html" href="http://tommazzo.com/archive/2008/01/04/virtual-photo-organizer-development-ceased.aspx" />
        <id>http://tommazzo.com/archive/2008/01/04/virtual-photo-organizer-development-ceased.aspx</id>
        <published>2008-01-04T20:04:1501:00:00</published>
        <updated>2008-01-04T20:04:15Z</updated>
        <content type="html">&lt;p&gt;As most of you know, there hasn't been an update to Virtual Photo Organizer (VPO) for almost two years. My original plans were to completely rewrite the program and release version 2. However after a lot of thinking I decided to end the VPO project. This was mainly due to two reasons:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;There is a load of really great photo album programs already out there - Windows (Live) Photo Gallery, Google Picasa, ... &lt;/li&gt;    &lt;li&gt;During my year in Washington I didn't have so much free time, as I was in the senior class of the German High School, getting ready for the Abitur (German High School diploma). Since Autumn I'm in university and I do have a lot more free time now, but it just doesn't make sense to spend so much time on a program that doesn't really stand a chance on the market. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;I would like to thank everyone who has helped me in the development of VPO, especially the translators, everyone who came up with suggestions or criticism and of course all the people, who used and liked (or maybe not so much liked) the program. Thank you very much guys. This project has been a lot of fun.&lt;/p&gt;&lt;img src="http://tommazzo.com/aggbug/2.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://tommazzo.com/comments/2.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://tommazzo.com/comments/commentRss/2.aspx</wfw:commentRss>
        <trackback:ping>http://tommazzo.com/services/trackbacks/2.aspx</trackback:ping>
    </entry>
    <entry>
        <title>New Year - New Blog</title>
        <link rel="self" type="text/html" href="http://tommazzo.com/archive/2008/01/03/new-year---new-blog.aspx" />
        <id>http://tommazzo.com/archive/2008/01/03/new-year---new-blog.aspx</id>
        <published>2008-01-03T23:26:1601:00:00</published>
        <updated>2008-01-03T23:27:06Z</updated>
        <content type="html">Hi everyone!&lt;br /&gt;
&lt;br /&gt;
Recently my uncle asked me how much I pay for the website I never update. Obviously we had quite a laugh when I admitted that I was currently paying the annual fee for not much more than the tommazzo e-mail addresses, the domain name and the never updated blog (actually never only refers to updates from my side, the spammers were rather busy in the comments section all year round). That's of course something to get you thinking.&lt;br /&gt;
So I now finally got myself to dump the old, overspammed blog and set up a new one with &lt;a href="http://subtextproject.com"&gt;Subtext&lt;/a&gt; and some ambitious plans. I intend to to update this blog from now on at least once every two weeks - I originally thought about updating it once every week, but we don't want to overdo it right? OK, seriously one post every two weeks seems like an amount even I should be able to manage.&lt;img src="http://tommazzo.com/aggbug/1.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://tommazzo.com/comments/1.aspx</wfw:comment>
        <slash:comments>10</slash:comments>
        <wfw:commentRss>http://tommazzo.com/comments/commentRss/1.aspx</wfw:commentRss>
        <trackback:ping>http://tommazzo.com/services/trackbacks/1.aspx</trackback:ping>
    </entry>
</feed>