COpenGL::SetMaxPrintResolution

void SetMaxPrintResolution( int MaxPrintResolution );

Parameters

MaxPrintResolution Maximum printing resolution. It this parameter is 0, the full resolution of the printing device will be used.

Remarks

The COpenGL object uses rendering to an internal bitmap and then drawing the bitmap on the printer. The maximum printing resolution is upper limit for the resolution of the internal bitmap.

For example, if resolution of the printing device is 5000 x 6000 pixels, and maximum printing resolution is set to 2000, the internal bitmap resolution will be set to 1666 x 2000 pixels. Rendered bitmap will be then stretched to the actual 5000 x 6000 resolution on the printer device.

If none of the printing device resolution dimensions is higher than maximum printing resolution, then the internal bitmap resolution will be equal to the printing device resolution. For example if resolution of the printing device is 1000 x 1500 pixels and maximum printing resolution is set to 2000, then the internal bitmap resolution will be set to 1000 x 1500 pixels.

This settings is important for printing on higher resolution printers, where using actual printer resolution for the bitmap would cause extremely high memory requirements. This could result into either application malfunction and terribly slow printing. If you have enough RAM, you can set this parameter to higher numbers (or use 0 which will force ClassGL to use actual printer resolution). The higher is the maximum printing resolution, the better is quality of the printed image.

Maximum printing resolution is set to 2048 during COpenGL object initialization.

This method is available since ClassGL version 3.5

See Also

OnBeginPrinting, OnEndPrinting, OnPrint, GetMaxPrintResolution