Before starting
To brows this documentation you must have a Java Virtual Machine installed on your computer.
We recommend installing Java 6 or higher from Sun Microsystems' web site.
1. Introduction
The GdImageBox ActiveX control provides an embeddable Image viewer for Windows application developers. Using Visual Basic, Visual FoxPro, MS Access, Delphi, VB.NET, C#, Visual C++, RealBasic (or another ActiveX-aware development tool), developers can build a custom interface including the capability to view Image files.
2. Installing & Redistributing the Control
All needed files can be found on the "Redist" folder of the directory where the toolkit has been installed.
• Required files:
You must copy the msvbvm60.dll and the gdimagebox2.ocx into c:\%Windows%\System32\ .
Note: gdimagebox2.ocx need to be registered on your system by running the folowing command: regsvr32 c:\%Windows%\System32\gdimagebox2.ocx
• Optional files:
- If your application runs under windows 98, NT4, ME or 2000 you must copy the gdiplus.dll into c:\%Windows%\System32\ or into your application directory.
- The gdimgplug.dll library can be redistributed in order to increase the speed of image decoding and to extend the supported image formats to JPEG 2000, TGA, EXR, PSP...
You must copy this file into c:\%Windows%\System32\ or into your application directory. You don't need to register this library on your system.
You can download the last gdimgplug.dll edition here.
3. Using the Control
This manual assumes that you are familiar with using controls in your development tool.
The GdImageBox Control can be instantiated just like any other control. Before using the GdImageBox ActiveX you need to add a reference to it within your development tool.
All samples will be given in Visual Basic and usage from other ActiveX-aware development tools is not specifically covered in this manual, but should be similar to the Visual Basic usage.
To add a reference to the GdImageBox control in Visual Basic 5 or 6:
• Select the “Components...” command on the “Projects” menu, then check the box next to “GdImageBox 2 - Image Viewer ActiveX".
Note: If you can't see the GdImageBox 2 - Image Viewer ActiveX box you can add it by clicking into the "Brows.." button.
To add a reference to the GdImageBox control in Visual Studio .NET:
• Right-click into the Toolbox Items and select "Add/Remove Items" for visual studio 2003 or "Choose Items" for visual studio 2005 and visual studio 2008.
• Choose the COM tab and check the classe(s) you want to use: (GdImageBox2.ImageBox).
Note: If you can't see the desired box you can add it by clicking into the "Brows.." button.
4. Class information's
• Component: GdImageBox 2 - Image Viewer ActiveX
Marked as Safe for Scripting and Initialization: NO
File: gdimagebox2.ocx
Class count: 1
Class 1: ImageBox (Visual Class)
-> Access string: GdImageBox2.ImageBox
-> CLSID: {DB264033-5D89-4FFC-AAF7-F6AA1D1B7F07}
• Component: GdImageBox 2 - Image Viewer ActiveX (Safe)
Marked as Safe for Scripting and Initialization: YES
File: gdimagebox2s.ocx
Class count: 1
Class 1: ImageBox (Visual Class)
-> Access string: GdImageBox2S.ImageBox
-> CLSID: {7FD025C0-A085-44EA-B411-40000E237918}