NisseBosseLasse Posted July 11, 2009 Share Posted July 11, 2009 (edited) Updated 4 Oct 2010 The 4 October update is merely the addition of a stand-alone version of this application, for use on 64-bit Windows. For more information, continue to the bottom of this post. The original plugin hasn't changed for this release. I've decided to remove the stand-alone version to avoid further confusions. Version 0.2.1 Added localization support (current only Swedish) Version 0.2 Small change in the UI (new icon etc.) Changed menu location from TWAIN to Tools Version 0.1 First release My first plugin! Hopefully someone finds it useful. It's still in development (0.2.1), but it should work as expected. Note This plugin currently only works on 32-bit systems. About I wrote this effect to be able to use my "old" CanoScan LiDE 20 scanner from Paint.NET. It uses the EZTwain Classic DLL, and should be compatible with all scanners that are TWAIN-compatible. Files included Twainable.dll - The effect plugin (required) EZTW32.dll - The EZTwain Classic DLL used by this plugin (required) Twainable readme.txt - This file sv-se.fxlang - Swedish localization Installation Place the files Twainable.dll and EZTW32.dll in the Effects folder of your Paint.NET installation folder. (Optional) Placing the sv-se.fxlang file in the Effects folder will give you Swedish translation. This plugin utilizes the plugin translation written by Simon Brown*. The file sv-se.fxlang contains translated entries for this plugin (currently only in Swedish). See Translation below if you want to translate these entries to your tongue. The localization file isn't required by the plugin to function. If not found, it will use English as default. If you want to use it, place it in the same folder as the Twainable.dll file (that is, the Effects-folder). *Note: the plugin translation code can be found in this forum thread: http://forums.getpaint.net/index.php?/topic/18816-plugin-translation-scheme-including-code/ Usage After placing both files in the Effects folder, (re-)start Paint.NET. The plugin can be found under the menu Effects->Tools->Acquire from TWAIN... The main window consists of three buttons: "Select Source..." lets you select which TWAIN-source to use "Acquire to clipboard..." starts the scanner software, and stores the scanned image in the clipboard "Close" closes the window Translation First, read the forum thread at http://forums.getpaint.net/index.php?/topic/18816-plugin-translation-scheme-including-code/ to get a better understanding on the format. The entries that this plugin uses are the following: <LANGCODE>:select source=<YOUR TRANSLATION> <LANGCODE>:acquire=<YOUR TRANSLATION> <LANGCODE>:close=<YOUR TRANSLATION> <LANGCODE>:close window automatically=<YOUR TRANSLATION> ...where <LANGCODE> is the language code of your language (e.g. sv-se for Swedish, de for German, and so on), and <YOUR TRANSLATION> is of course the translation. The file sv-se.fxlang contains several other entries as well, but these aren't used by this plugin. References EZTwain Classic DLL can be found here: http://www.dosadi.com/eztwain1.htm Running on 64-bit systems If you running a 64-bit system you may have come across the error message System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B). This is due to trying to run the plugin on a 64-bit system. I've developed a stand-alone version of the plugin, for all you 64-bit users. It works in the same way, but doesn't required Paint.NET to run (it's a stand-alone, after all). Just download the "Twainable (stand-alone 0.1).zip" archive attached to this post, and read the file "Read me.txt" contained within. Removed as of 8 sep 2011. Twainable.zip Edited September 8, 2011 by NisseBosseLasse Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.