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