These C/C++ demos currently exist:
ImagingImport.h
header and link compiled
ImagingImport.c
file (both located in
Source\Wrappers\Cpp
directory)
and for C++ use namespace
Imaging
. You must call ImLoadLibrary
before usage of any Imaging functions and you must call
ImFreeLibrary when you don't want to use library anymore.
This is not actually benchmark like Object Pascal version because all measured functions are called from external library, but it shows how to use Imaging dll from C/C++ at least.
Demo InformationName | Benchmark |
Language | C++ |
Source Path | (Imaging Root)\Demos\Cpp\Benchmark |
Exe Path | (Imaging Root)\Demos\Bin\BenchCpp.exe |
Platforms (tested) | W in32 |
Compilers (tested) | MSVC 8.0 W, GCC 3.4.2 W |
Demo shows usage of | low level (using dyn. library wrapper) |
For details look at Object Pascal version. There are only two differences:
Simple test program that shows how to use Imaging library from C/C++ environment.
Demo InformationName | Small Test |
Language | C/C++ |
Source Path | (Imaging Root)\Demos\Cpp\Test |
Exe Path | (Imaging Root)\Demos\Bin\test[.exe] |
Platforms (tested) | W in32, Linux |
Compilers (tested) | MSVC 8.0 W, GCC 3.4.2 WL |
Imaging interface | low level (using dyn. library wrapper) |
Test image is created and diagonal line is drawn across it. Then it is saved to ctestimage.png file.