Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / PrintSetColorMode Method
A member of the PrinterColorMode enumeration. The new value of the active printer color mode setting.
Example





In This Topic
    PrintSetColorMode Method (GdPictureImaging)
    In This Topic
    Sets up the printer color mode setting of the active printer. This property determines whether the output will print in color or in monochrome.
    Syntax
    'Declaration
     
    
    Public Function PrintSetColorMode( _
       ByVal ColorMode As PrinterColorMode _
    ) As GdPictureStatus
    public GdPictureStatus PrintSetColorMode( 
       PrinterColorMode ColorMode
    )
    public function PrintSetColorMode( 
        ColorMode: PrinterColorMode
    ): GdPictureStatus; 
    public function PrintSetColorMode( 
       ColorMode : PrinterColorMode
    ) : GdPictureStatus;
    public: GdPictureStatus PrintSetColorMode( 
       PrinterColorMode ColorMode
    ) 
    public:
    GdPictureStatus PrintSetColorMode( 
       PrinterColorMode ColorMode
    ) 

    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.

    Remarks
    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.
    Example
    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);
    }
    See Also