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 GdPicture Light ActiveX control provides an image processing class 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 do image processing features. This SDK is based on the GdPicture V5 Technology.
2. Installing & Redistributing the Control
• Required files:
You must copy the msvbvm60.dll and the gdpicture4.ocx into c:\%Windows%\System32\ .
You can download the last gdpicture4.ocx edition here.
Note: gdpicture4.ocx need to be registered on your system by running the folowing command: regsvr32 c:\%Windows%\System32\gdpicture4.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.
- TWAIN functions are included in gdtwain.dll. This library is needed if your application includes TWAIN device support.
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 gdtwain.dll edition here.
- 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.
Parts of the gdimgplug.dll are based on the FreeImage open source image library. See http://freeimage.sourceforge.net for details. FreeImage is used under the FreeImage Public License - Version 1.0.
3. Using the Control
This manual assumes that you are familiar with using controls in your development tool.
The GdPicture Light Control can be instantiated just like any other control. Before using the GdPicture Light ActiveX you need to add a reference to it within your development tool.
All sample 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 GdPicture Light control in Visual Basic 5 or 6:
• Select the “Components...” command on the “Projects” menu, then check the box next to “GdPicture Light 4 - Imaging Toolkit".
Note: If you can't see the GdPicture Light 4 - Imaging Toolkit box you can add it by clicking into the "Brows.." button.
To add a reference to the GdPicture Light 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 gdpicture4.imaging class.
Note: If you can't see the desired box you can add it by clicking into the "Brows.." button.
4. Class informations
• Component: GdPicture Light 4 - Imaging Toolkit
Marked as Safe for Scripting and Initialization: NO
File: gdpicture4.ocx
Class count: 2
Class 1: Imaging (Visual Class)
-> Access string: GdPicture4.Imaging
-> CLSID: {9C749721-0172-46C6-9AA0-F51B2D400BA0}
Class 2: cImaging (Non-Visual Class)
-> Access string: GdPicture4.cImaging
-> CLSID: {05CF1569-D316-4C54-B997-DD348DDE79BA}
• Component: GdPicture Light 4 - Imaging Toolkit (Safe)
Marked as Safe for Scripting and Initialization: YES
File: gdpicture4S.ocx
Class count: 2
Class 1: Imaging (Visual Class)
-> Access string: GdPicture4S.Imaging
-> CLSID: {E8512363-3581-42EF-A43D-990E7935C8BE}
Class 2: cImaging (Non-Visual Class)
-> Access string: GdPicture4S.cImaging
-> CLSID: {C68585CA-B3D3-4B06-BE35-F47F88C0C1CD}