10350 Santa Monica Blvd. Suite 285, Los Angeles, CA 90025
Phone: 310-691-8920, 310-788-9840, Fax: 419-735 -2419
Card Scanning Solutions
34
Library CImage: Properties and Functions
CImage library is a collection of graphic functions, capable of manipulating an image object. The
image object may be loaded from external file or the image object stored in ScanLib library (which is
the image of the last scanned document).
The library functions are capable of doing the following:
Image rotation: Rotating an image in 90, 180 or 270 degrees.
Resolution modification: Modify the resolution to any value.
Image color conversion: Converting the image to 24 bit (true color), 256 colors (gray or color) or Black
and White (1 bit).
Concatenate two image files to a single image: Attach two im ages (horizontally or vertically) to form a
single image file of both id card sides.
The image can be exported (saved) to external image file in any one of seven popular image formats
such as BMP, JPG, TIFF, PCX, PNG, TGA and PSD. Alternatively, the image object can be exported
to the clipboard and from there be imported to other applications.
1.1.40.
InitLibrary
Format
Parameters
[in]
License
– Null terminated string that holds license key value.
Return
LICENSE_VALID
: License is valid and the library is ready to be used.
LICENSE_INVALID
: The license is invalid. All scanner operations are disabled.
LICENSE_EXPIRED
: License has expired. All scanner operations are disabled.
LICENSE_DOES_NOT_MATCH_LIBRARY
: The license is invalid for this library. All library
operations are disabled.
Remarks
Use this function to initialize the CImage library. This function must be called before calling any other
function in the library.
1.1.41.
GetImageColor
Format
InitLibrary
(
License
As String) As Long