PrintSetColorMode Method (GdPictureImaging)
Sets up the printer color mode setting of the active printer. This property determines whether the output will print in color or in monochrome.
Parameters
- ColorMode
- A member of the PrinterColorMode enumeration. The new value of the active printer color mode setting.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.
Setting basic printer properties.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
Console.WriteLine("Setting printer color mode to -monochrome/shades of BW-");
gdpictureImaging.PrintSetColorMode(PrinterColorMode.PrinterColorModeGray);
Console.WriteLine("Setting paper orientation to -portrait-");
gdpictureImaging.PrintSetOrientation(PrinterOrientation.PrinterOrientationPortrait);
Console.WriteLine("Setting printing quality to -draft-");
gdpictureImaging.PrintSetQuality(PrintQuality.PrintQualityDraft);
}