[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.HtmlToImageFormat.-ctor

HtmlToImageFormat Constructor

HtmlToImageFormat(bool, bool)

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).

Declaration
public HtmlToImageFormat(bool fullPage, bool trimMargins = true)
Public Sub New(fullPage As Boolean, Optional trimMargins As Boolean = True)
Parameters
Type Name Description
bool fullPage

Specifies whether to render the whole page.

bool trimMargins

Specifies whether to trim image margins.

See Also