The Free, Quality Image library for Windows
ActiveX-Library: Installation and basic testing
Design and implementation by
Markus Loibl
(markus.loibl@epost.de)
This file is part of FreeImage 2.6.0
Installation
If you want to register the control, just enter at
the command-prompt:
regsvr32 <your_path>\FreeImageX.dll
If you want to unregister the control:
regsvr32 /u <your_path>\FreeImageX.dll
Testing
You can test the control using VB-Script. If you
have Win2000 or higher, Windows Scripting is already built into your system.
Otherwise you have to download it for free from
http://msdn.microsoft.com/scripting.
A test-script could look like:
Option explicit
dim ctrl
dim title
dim text
set ctrl = createObject("FreeImage.Application")
title = ctrl.Version
text = ctrl.Copyright
MsgBox text, 0, title
set ctrl = Nothing
Or:
Option explicit
dim ctrl
dim erg
set ctrl = CreateObject("FreeImage.Image")
ctrl.Test "Opening earth.jpg and saving as a tiff .... ", "FreeImage.Image"
erg = ctrl.Open("earth.jpg")
MsgBox "Opening file result: " + CStr(erg)
erg = ctrl.Save("earth.tif")
MsgBox "Saving file result: " + CStr(erg)
set ctrl = Nothing