| |
Graphic Viewer Library
The same high-quality image reading and writing routines in Graphic Viewer are also available as a library which can be linked to your own programs.
GVLIB.LIB is a library of C routines which provide image loading and saving. The library is available for the Symantec C compiler and for the Microsoft C compiler. All routines are 32-bit C functions.
The different routines are:
LoadBMP | Read a file (or memory area) to a DIB. The file can be any of the 10 formats Graphic Viewer supports. |
SaveBMP | Save a DIB to a file. All file save options in GV are also available in this save process. |
DepalettizeBMP | Convert a DIB to 24-bits. |
PalettizeBMP | Convert a DIB to its optimal 8-bit palette or to a specified palette. |
BMPPalette | Compute the optimal 8-bit pallete for a DIB. |
ScaleBMP | Create a new DIB by scaling an existing one. This can either be by duplicating pixels, or by bilinear, biquadratic, bicubic, biquartic, or biquintic interpolation. Scaling can be performed using either area, point, or block transforms. |
LoadGraphic | These routines are the same as the BMP routines, above, except that they all work on a simple "Graphic" format, which is faster and more efficient that the Windows Device Independant Bitmap (DIB). |
SaveGraphic |
DepalettizeGraphic |
PalettizeGraphic |
GraphicPalette |
ScaleGraphic |
BMPToGraphic | Convert a DIB to the "Graphic" format. |
GraphicToBMP | Convert the "Graphic" format to a DIB. |
BitmapToBMP | Convert a Device Dependant Bitmap (and palette) to a DIB. |
Email for more information, prices, and documentation for GVLIB.LIB. GVLIB is already integrated into three other programs besides Graphic Viewer.
Please note that in order to use LZW compression in GIFs and in LZW style TIFs, it is necessary to obtain a license from the UniSys Corporation, which holds a patent on this process.
Site Map
For further information, write to David Manthey at manthey@orbitals.com or at P.O.Box 27, Troy, New York 12181-0027.
Lightning image by Cori Prazen. GV icon by Benjamin Manthey. Page last updated on 29 August 2001 by David Manthey.
|