Inheritance diagram for wx.html.HtmlDCRenderer:
This class can render HTML document into a specified area of a DC. You can use it in your own printing code, although use of wx.html.HtmlEasyPrinting or wx.html.HtmlPrintout is strongly recommended.
Returns the height of the HTML text.
This is important if area height (see SetSize) is smaller that total height and thus the page cannot fit into it. In that case you’re supposed to call Render as long as its return value is smaller than GetTotalHeight.
Returns:
int
Renders HTML text to the DC.
Parameters:
Returns:
int
Caution
The following three methods must always be called before any call to Render (preferably in this order):
Render() changes the DC’s user scale and does not restore it.
Assign DC instance to the renderer.
pixel_scale can be used when rendering to high-resolution DCs (e.g. printer) to adjust size of pixel metrics.
Many dimensions in HTML are given in pixels – e.g. image sizes. 300x300 image would be only one inch wide on typical printer. With pixel_scale = 3.0 it would be 3 inches.
Parameters:
Sets fonts. See wx.html.HtmlWindow.SetFonts for detailed description.
Parameters:
See also
Assign text to the renderer. Render then draws the text onto DC.
Parameters:
Set size of output rectangle, in pixels.
Parameters:
Note
You can’t change width of the rectangle between calls to Render! (You can freely change height).
Parameters: