WIA - Windows Image Acquisition (1.0.02.00 - 2015-05-03)

Post your working scripts, libraries and tools
just me
Posts: 5640
Joined: 02 Oct 2013, 08:51
Location: Germany

WIA - Windows Image Acquisition (1.0.02.00 - 2015-05-03)

26 Apr 2015, 04:39

After reading this thread, the linked script by maestrith, the COM example by sinkfaze, and the MSDN docs about the Windows Image Acquisition Automation Layer i found that the ImageFile object combined with ImageProcess object provide a set of easy-to-use methods to manipulate images. I didn't find other threads about this topic in both forums. So I wrote this little WIA lib. All functions won't overwrite passed objects. Also, the lib doesn't support multiple frames as yet, but I think it could be added.
Change History:
Public Function List:
I don't know whether all functions will work properly on Win XP because I cannot test here.
Lib WIA.ahk:
WIASample.ahk:
WIASample_Create.ahk:
WIAFilters.ahk:
This script will show the description of the available filters and their parameters.
Other examples:
License: The Unlicense
Last edited by just me on 17 May 2015, 00:18, edited 5 times in total.
vasili111
Posts: 747
Joined: 21 Jan 2014, 02:04
Location: Georgia

Re: WIA - Windows Image Acquisition (Automation Layer)

26 Apr 2015, 15:54

just me
Nice and useful library. Thank you :)
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
just me
Posts: 5640
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: WIA - Windows Image Acquisition (2015-04-27)

27 Apr 2015, 10:56

*Update 1.0.01.00 on 2015-04-27*
Guest10
Posts: 578
Joined: 01 Oct 2013, 02:50

Re: WIA - Windows Image Acquisition (2015-04-27)

27 Apr 2015, 14:44

my XP choked here:
Loop, Files, %A_WinDir%\Web\WallPaper\*.jpg, R
:morebeard:
just me
Posts: 5640
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: WIA - Windows Image Acquisition (2015-04-27)

28 Apr 2015, 01:23

This line is part of the sample script and not included in one of the WIA functions. Do you use the latest AHK version? Otherwise you might replace the line with

Code: Select all

Loop, %A_WinDir%\Web\WallPaper\*.jpg, 0, 1
carno
Posts: 133
Joined: 20 Jun 2014, 16:48

Re: WIA - Windows Image Acquisition (2015-04-27)

28 Apr 2015, 05:01

I have a similar issue and I use the following version:
AHK Version: 1.1.19.01
Unicode: Yes (32-bit)
Operating System: WIN_XP
Admin Rights: Yes
just me
Posts: 5640
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: WIA - Windows Image Acquisition (2015-04-27)

28 Apr 2015, 08:14

The latest version is 1.1.21.03, otherwise ...

Or you might want to put an image file path manually into ImgPath.
kon
Posts: 1756
Joined: 29 Sep 2013, 17:11

Re: WIA - Windows Image Acquisition (1.0.02.00 - 2015-05-03)

16 May 2015, 15:22

Hi just me,

Congratulations on making an awesome lib!

It took me a while of looking through the msdn before I figured out that your example, WIAFilters.ahk, was the best way to see the filters documentation. It might be useful to note this more prominently so other users look there first.

I appreciate your example here. Maybe you could start a collection of examples or links to examples, similar to what tic did for the Gdip tutorials? I think a collection of useful examples in one place would be good. :)

Thanks again!
just me
Posts: 5640
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: WIA - Windows Image Acquisition (1.0.02.00 - 2015-05-03)

17 May 2015, 00:19

Hi kon,

thanks for your suggestions. Better now? ;)

Return to “Scripts and Functions”

Who is online

Users browsing this forum: [Shambles] and 47 guests