<< Click to Display Table of Contents >> VpeSetDevColor |
[Windows platform only; not supported by the Community Edition]
Sets the color mode for the currently selected output device, only useful, if the output device is a color printer.
int VpeSetDevColor(
VpeHandle hDoc,
int color
)
VpeHandle hDoc
Document Handle
int color
possible values are:
Constant Name |
Value |
Comment |
VCOLOR_MONOCHROME |
1 |
|
VCOLOR_COLOR |
2 |
|
Returns:
Value |
Description |
True |
success |
False |
failure |
Remarks:
In case of an error, LastError is set to VERR_COMMON. An error may occur if the device does not support setting the color mode.
Example:
VpeSetDevColor(hDoc, VCOLOR_MONOCHROME)