GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / PrintSetQuality Method
A member of the PrintQuality enumeration. The new value of the active printer quality setting.
Example





In This Topic
PrintSetQuality Method (GdPictureImaging)
In This Topic
Sets up the printer quality setting of the active printer. This setting matches the PrinterResolutionKind property included in the PrinterSettings.PrinterResolutions parameter of the active printer.

If the required Quality parameter is identified within the set of PrinterSettings.PrinterResolutions property items of the active printer, then the currently defined active printer resolution is filled up with the specified resolution attributes provided by the corresponding printer resolution item.

Syntax
'Declaration
 
Public Function PrintSetQuality( _
   ByVal Quality As PrintQuality _
) As GdPictureStatus
public GdPictureStatus PrintSetQuality( 
   PrintQuality Quality
)
public function PrintSetQuality( 
    Quality: PrintQuality
): GdPictureStatus; 
public function PrintSetQuality( 
   Quality : PrintQuality
) : GdPictureStatus;
public: GdPictureStatus PrintSetQuality( 
   PrintQuality Quality
) 
public:
GdPictureStatus PrintSetQuality( 
   PrintQuality Quality
) 

Parameters

Quality
A member of the PrintQuality enumeration. The new value of the active printer quality 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.

Likewise to inform you that you can also use the PrintSetPrinterSettings method to specify all relevant printer settings for the active printer according to your preference and printer possibilities.

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