#include "BITGA.H"
BOOL CALLBACK SaveBitmapInTGAFormat( LPTSTR lpszFileName,
HBITMAP hBitmap,
HPALETTE hPalette,
BOOL bComp,
BOOL bDispInfo)
Description
Save a device dependent bitmap with palette in the TARGA file format. Does all low-level function calls.
Parameters
|
LPTSTR |
lpszFileName |
Destination file name. |
|
HBITMAP |
hBitmap |
Bitmap to be saved as TARGA image. |
|
HPALETTE |
hPalette |
Palette saves as color map. |
|
BOOL |
bComp |
Compressed or uncompressed mode. |
|
BOOL |
bDispInfo |
Setting this parameter to a “TRUE” value would display the file open dialog box for the TGA image. |
Additional Information
This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.
Return values
TRUE on success, FALSE if the function call fails. Call GetTGAError(...) for the error code and call GetTGAErrorString(...) for an error description.
Programming notes
This function was designed to be used with high-level application generators like Borland C++, Visual Basic, SQL Windows, Actor, or Asymetric’s Toolbook.
Requirements
Header : Declared in BiTGA.h; include BiTGA.h.
Library : Use BiTGA.lib.
DLLs : BiTGA.dll.
Code example
None at present.