#include "BITIFF.H"
BOOL CALLBACK DecompressCALSToScreen( HWND hWnd,
HDC hDC,
LPSTR lpFileName,
LPRECT lprScale,
UINT wDisplayFormat)
Description
Decompress CALS image directly to the specified window. The DecompressCALSToScreen() function should be called only in response to the WM_PAINT message.
Parameters
|
HWND |
hWnd |
Window handle to display image. |
|
HDC |
hDC |
Device context. |
|
LPSTR |
lpFileName |
The path of CALS file. |
|
LPRECT |
lprScale |
The X and Y scaling factor. |
|
UINT |
wDisplayFormat |
Display mode. |
UINT wDisplayFormat can be set to:
BIS_ROTATE90 - Decompress the image by rotating it 90 degrees clockwise.
BIS_ROTATE180 - Decompress the image by rotating it180 degrees clockwise.
BIS_ROTATE270 - Decompress the image by rotating it 270 degrees clockwise.
BIS_SCALENORMAL - It will display the image proportionally. Same as DISP_NORMAL.
BIS_FITTOSCREEN - It will display the image proportionally and it forces the image to fit
into the client area. Same as DISP_PREVIEW.
BIS_DRAFT - Display the image pixel to pixel without scaling.
BIS_INVERT - Display the image by inverting it's palette.
DISP_NORMAL - It will display the image proportionally.
DISP_PREVIEW - It will display the image proportionally and it forces the image to fit
into the client area. Same as BIS_FITTOSCREEN.
DISP_INVERT - Display the image by inverting it's palette. Same as BIS_INVERT.
Return values
TRUE on success, otherwise FALSE.
Requirements
Header : Declared in BiTiff.h; include BiTiff.h.
Library : Use BiTiff.lib.
DLLs : BiTiff.dll.