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 advanced image processing.
2. Installing & Redistributing the Control
You must copy the msvbvm60.dll and the gdpicture3.ocx into c:\%Windows%\System32\ . If your application runs under windows 98, NT4, ME or 2000 you must copy too the gdiplus.dll in this same directory.
You must register GdPicture on your system by running the command: regsvr32 c:\%Windows%\System32\gdpicture3.ocx
You can download the last gdpicture3.ocx edition here.
TWAIN functions are include in gdtwain.dll. This DLL is only necessary if your application includes TWAIN device support. To use it you must copy it into c:\%Windows%\System32\
You can download the last gdtwain.dll edition here.
3. Using the Control
Before using the control within a development environment, make sure the objsafe.tlb file is present into the windows/system32 directory.
This manual assumes that you are familiar with using controls in your development tool.
The GdPicture Control can be instantiated just like any other control. Before using the GdPicture ActiveX you need to add a reference to it within your development tool.
All sample will be give 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 control in Visual Basic 5 or 6:
Select the “Components...” command on the “Projects” menu, then check the box next to “GdPicture Light 3 - Imaging Toolkit"
Note: If you can't see the GdPicture Light 3 - Imaging Toolkit box you can add it by clicking into the "Brows.." button.
To add a reference to the GdPicture 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 GdPicture3.Imaging classe.
Note: If you can't see the desired box you can add it by clicking into the "Brows.." button.
Important note:
This control is signed and marked as safe for scripting and safe for initializing.
If you encounter problems to load it within some development environment like Visual Basic 6, you probably need to copy the objsafe.tlb file into the system32 directory.