PrintSetPreRasterizationDPI Method (GdViewer)
Specifies the rendering resolution to be used when pre-rasterization is enabled using the
GdViewer.PrintSetPreRasterization method.
'Declaration
Public Function PrintSetPreRasterizationDPI( _
ByVal As Single _
) As GdPictureStatus
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.
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()