#include “BlackIceDEVMODE.h”
BOOL SetColorDepth(DWORD colordepth, BlackIceDEVMODE* pDevMode);
Description
Sets the ColorMode member of the BlackIceDEVMODE. Sets the value of the 'Color Depth' radio button.
Parameters
DWORD colordepth - Color Depth (DWORD number).
BlackIceDEVMODE* pDevMode - pointer to the BlackIceDEVMODE structure.
Available color depth values:
Value |
Color Depth |
0 |
1bit |
1 |
8 bit gray scale |
2 |
8 bit |
3 |
24 bit |
Note:
File Format |
Supported Color Depth |
|
1 bit, 8 bit Gray scale, 8 bit, 24 bit |
PDF (Image) |
1 bit, 8 bit Gray scale, 8 bit, 24 bit |
Jpeg, Jpeg LAB |
24 bit |
PNG |
1 bit, 8 bit Gray scale, 8 bit, 24 bit |
GIF |
1 bit, 8 bit Gray scale, 8 bit |
Tiff Jpeg |
24 bit |
Tiff Group 4, Tiff Group 3, Tiff for CISCO, Tiff for Dialogic boards, Tiff for NMS boards, Tiff for Gammalink boards |
1 bit |
Tiff Packed, Tiff LZW, Tiff Uncompressed |
1 bit, 8 bit Gray scale, 8 bit, 24 bit |
HTML editable, HTML with JPEG |
24 bit |
HTML with GIF |
1 bit, 8 bit Gray scale, 8 bit |
HTML with PNG, HTML with BMP |
1 bit, 8 bit Gray scale, 8 bit, 24 bit |
XML with GIF |
1 bit, 8 bit Gray scale, 8 bit |
XML with PNG, XML with BMP, XML with PDF Image |
1 bit, 8 bit Gray scale, 8 bit, 24 bit |
XML with JPEG |
24 bit |
Microsoft Bitmap |
1 bit, 8 bit Gray scale, 8 bit, 24 bit |
PCX |
1 bit, 8 bit Gray scale, 8 bit, 24 bit |
Intel DCX |
1 bit, 8 bit Gray scale, 8 bit, 24 bit |
IBM MMR IOCA |
1 bit |
CALS |
1 bit |
RAW CCITT Group 3 1 dimension, RAW CCITT Group 3 1 dimension with Fillbits, RAW CCITT Group 3 2 dimension, RAW CCITT Group 4 |
1 bit |
Return value
TRUE if the member was successfully set, otherwise FALSE.
Programming Notes
None
Code Example
None