Available in the LEADTOOLS Imaging toolkit. |
Example Programs
Note: You can run some of the example programs on your system by clicking the appropriate buttons in online help. An error message will appear if you try to run an example program that is not on your system, or if you try to run a Delphi example without Delphi on your system.
The executable files for these examples were compiled with Document/Medical capabilities of the toolkit. To get Document/Medical capabilities, you must buy a LEADTOOLS Document/Medical toolkit. Otherwise, if you recompile the examples, the resulting executable files will not have the Document/Medical capabilities.
Internet
EXAMPLES\OCX\INTERNET contains sample HTML files that use Java and VB Script to demonstrate the net-aware capabilities of the ActiveX.
Visual Basic
EXAMPLES\OCX\VB\DEMO32
contains a sample application that demonstrates most of the ActiveX capabilities
in Visual Basic 5.0. To run the 32-bit sample application, you can run
the EXE file in LEAD's BIN directory.
Click here
to run the WIN32 version of this example.
EXAMPLES\OCX\VB\ANNOT32
contains a sample application that demonstrates the annotation capabilities.
To run the 32-bit sample application, you can run the EXE file in LEAD's
BIN directory.
Click here
to run the WIN32 version of this example.
EXAMPLES\OCX\VB\BIND32
contains a sample database application implemented using data binding.
For WIN32 systems, this example references the IMAGES\LEADPIC.MDB database.
To run the 32-bit sample application, you can run the EXE file in LEAD's
BIN directory, specifying the correct database as a command-line argument.
Click here
to run the WIN32 version of this example.
EXAMPLES\OCX\VB\ANNB32
contains a sample annotation application implemented using data binding.
To run the 32-bit sample application, you can run the EXE file in LEAD's
BIN directory.
Click here
to run the WIN32 version of this example.
EXAMPLES\OCX\VB\DB32 contains sample project code for an ODBC database example in Visual Basic 5.0. To use the DB demo, you must first do the following:
1. Specify an ODBC data source named LEADACCESS that references the IMAGES\LEADPIC.MDB database. For instructions on specifying an ODBC data source, refer to Using ODBC.
2. Open the project in Visual Basic and modify the Dpeople data control's DatabaseName property to reference the IMAGES\LEADPIC.MDB database.
EXAMPLES\OCX\VB\DRAW32
uses the LEADTOOLS ActiveX to load an image, to demonstrate graphics functions,
and to save the modified image. To run the 32-bit sample application,
you can run the EXE file in LEAD's BIN directory.
Click here
to run the WIN32 version of this example.
EXAMPLES\OCX\VB\FX32
demonstrates the LEADTOOLS special effects, including paint effects, transitions,
three-dimensional text, and three-dimensional shapes. To run the 32-bit
sample application, you can run the EXE file in LEAD's BIN directory.
Click here
to run the WIN32 version of this example.
EXAMPLES\OCX\VB\MAG32
uses two LEAD controls. The first control displays the unmagnified image.
The second control, when enabled, can be dragged across the first one
to magnify the covered portion of the image. To run the 32-bit sample
application, you can run the EXE file in LEAD's BIN directory.
Click here
to run the WIN32 version of this example.
Visual C++ 4.0
EXAMPLES\OCX\MFC40\DEMO
contains sample project code for Visual C++ 4.0. You can open the project
in Visual C++; then compile and run it.
Click here
to run the WIN32 version of this example.
EXAMPLES\OCX\MFC40\ANNOTATE
demonstrates the LEADTOOLS annotation capabilities. To run the sample
application, you can run the EXE file in LEAD's BIN directory.
Click here
to run the WIN32 version of this example.
EXAMPLES\OCX\MFC40\DB contains sample project code for a database example in Visual C++ 4.0. To use the DB demo, you must first do the following:
1. Specify an ODBC data source named LEADACCESS that references the IMAGES\LEADPIC.MDB database. For instructions on specifying an ODBC data source, refer to Using ODBC.
2. Open the project in Visual C++ and modify the GetDefaultDBName function to reference the IMAGES\LEADPIC.MDB database.
EXAMPLES\OCX\MFC40\DRAW
uses the LEADTOOLS ActiveX to load an image, to demonstrate graphics functions,
and to save the modified image. To run the sample application, you can
run the EXE file in LEAD's BIN directory.
Click here
to run the WIN32 version of this example.
EXAMPLES\OCX\MFC40\FXDEMO
demonstrates the LEADTOOLS special effects, including paint effects, transitions,
three-dimensional text, and three-dimensional shapes. To run the sample
application, you can run the EXE file in LEAD's BIN directory.
Click here
to run the WIN32 version of this example.
EXAMPLES\OCX\MFC40\MAGNIFY
uses two LEAD controls. The first control displays the unmagnified image.
The second control, when enabled, can be dragged across the first one
to magnify the covered portion of the image. To run the sample application,
you can run the EXE file in LEAD's BIN directory.
Click here
to run the WIN32 version of this example.
Access 95 and 97
Note: These are Access 95 examples, which you can convert to Access 97. In the database example, the maximize button is disabled because of problems with the SetMenuItem method in Access 97.
EXAMPLES\OCX\ACCESS7\DEMO contains sample project code for Microsoft Access 95. To run the sample application from Access, open the sample database, then open the MAIN form. To avoid ODBC setup issues, this demo does not add images to a database.
EXAMPLES\OCX\ACCESS7\DB contains sample project code for a database example in Access 95. To use the DB demo, you must do the following:
1. Specify an ODBC data source named LEADACCESS that references the IMAGES\LEADPIC.MDB database. For instructions on specifying an ODBC data source, refer to Using ODBC.
2. Open the project in Access 95 and modify Query1 to reference the IMAGES\LEADPIC.MDB database.
3. Run the sample application from Access by opening the MAIN form.