[]
Creates a PNG image from the source HTML and saves it to a specified stream.
public bool RenderToPng(Stream outputStream, PngSettings settings = null)
Public Function RenderToPng(outputStream As Stream, Optional settings As PngSettings = Nothing) As Boolean
Type | Name | Description |
---|---|---|
Stream | outputStream | The destination stream. |
PngSettings | settings | The set of parameters for the output image. |
Type | Description |
---|---|
bool | True if PNG was successfully saved; otherwise, false. |
Creates a PNG image file from the source HTML.
public bool RenderToPng(string outputFilePath, PngSettings settings = null)
Public Function RenderToPng(outputFilePath As String, Optional settings As PngSettings = Nothing) As Boolean
Type | Name | Description |
---|---|---|
string | outputFilePath | The destination file path. |
PngSettings | settings | The set of parameters for the output image. |
Type | Description |
---|---|
bool | True if the browser process has exited; otherwise, false. |