[]
Initializes a new instance of HtmlToImageFormat.
If fullPage
is true, the resulting image size will be calculated automatically
to include all page content. The minimal size will be determined by WindowSize.
If fullPage
is false, the maximum resulting image size will be determined
by MaxWindowWidth and MaxWindowHeight (possibly clipping some content).
public HtmlToImageFormat(bool fullPage, bool trimMargins = true)
Public Sub New(fullPage As Boolean, Optional trimMargins As Boolean = True)
Type | Name | Description |
---|---|---|
bool | fullPage | Specifies whether to render the whole page. |
bool | trimMargins | Specifies whether to trim image margins. |