GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / PrintSetPreRasterizationDPI Method
The rendering resolution to be used for pre-rasterization. The default value is -1, which means automatic computation based on printing quality.
Example





In This Topic
PrintSetPreRasterizationDPI Method (GdViewer)
In This Topic
Specifies the rendering resolution to be used when pre-rasterization is enabled using the PrintSetPreRasterization method.
Syntax
'Declaration
 
Public Function PrintSetPreRasterizationDPI( _
   ByVal DPI As Single _
) As GdPictureStatus
public GdPictureStatus PrintSetPreRasterizationDPI( 
   float DPI
)
public function PrintSetPreRasterizationDPI( 
    DPI: Single
): GdPictureStatus; 
public function PrintSetPreRasterizationDPI( 
   DPI : float
) : GdPictureStatus;
public: GdPictureStatus PrintSetPreRasterizationDPI( 
   float DPI
) 
public:
GdPictureStatus PrintSetPreRasterizationDPI( 
   float DPI
) 

Parameters

DPI
The rendering resolution to be used for pre-rasterization. The default value is -1, which means automatic computation based on printing quality.

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.

Example
Printing a file using the pre-rasterization feature.
// Display a file in the integrated GdViewer1 control.
GdViewer1.DisplayFromFile(""); // An empty string allows the control to prompt for selecting a file.
 
// Enable the pre-rasterization option.
GdViewer1.PrintSetPreRasterization(true);
GdViewer1.PrintSetPreRasterizationDPI(300);
 
// Print a file.
GdViewer1.Print();
 
GdViewer1.CloseDocument();
' Display a file in the integrated GdViewer1 control.
GdViewer1.DisplayFromFile("") ' An empty String allows the control To prompt For selecting a file.
 
' Enable the pre-rasterization option.
GdViewer1.PrintSetPreRasterization(True)
GdViewer1.PrintSetPreRasterizationDPI(300)
 
' Print a file.
GdViewer1.Print()
 
GdViewer1.CloseDocument()
See Also