GdPicture14 Namespace / GdPictureImaging Class / PrintGetColorMode Method

In This Topic
PrintGetColorMode Method (GdPictureImaging)
In This Topic
Returns the printer color mode setting of the active printer. This property determines whether the output will print in color or in monochrome.
Public Function PrintGetColorMode() As PrinterColorMode
public PrinterColorMode PrintGetColorMode()
public function PrintGetColorMode(): PrinterColorMode; 
public function PrintGetColorMode() : PrinterColorMode;
public: PrinterColorMode PrintGetColorMode(); 
PrinterColorMode PrintGetColorMode(); 

Return Value

A member of the PrinterColorMode enumeration. The value of the active printer color mode setting.
It is recommend to use the GetStat method or the PrintGetStat method to identify the specific reason for the method's failure, if any.

Just to remind you that the active printer is the printer identified by the PrintGetActivePrinter method or set by the PrintSetActivePrinter method and it is dedicated to executing all subsequent print jobs using this class as well as utilizing all by you altered printer settings.

Showing basic printer settings on the screen.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
    Console.WriteLine("Printer settings information:");
    Console.WriteLine("Printer color mode: {0}", gdpictureImaging.PrintGetColorMode().ToString());
    Console.WriteLine("Paper orientation: {0}", gdpictureImaging.PrintGetOrientation().ToString());
    Console.WriteLine("Printing quality: {0}", gdpictureImaging.PrintGetQuality().ToString());
See Also