[]
        
(Showing Draft Content)

GrapeCity.Documents.Html.GcHtmlRenderer.RenderToJpeg

RenderToJpeg Method

RenderToJpeg(Stream, JpegSettings)

Creates a JPEG image from the source HTML and saves it to a specified stream.

Declaration
public bool RenderToJpeg(Stream outputStream, JpegSettings settings = null)
Public Function RenderToJpeg(outputStream As Stream, Optional settings As JpegSettings = Nothing) As Boolean
Parameters
Type Name Description
Stream outputStream

The destination stream.

JpegSettings settings

The set of parameters for the output image.

Returns
Type Description
bool

True if JPEG was successfully saved; otherwise, false.

RenderToJpeg(string, JpegSettings)

Creates a JPEG image file from the source HTML.

Declaration
public bool RenderToJpeg(string outputFilePath, JpegSettings settings = null)
Public Function RenderToJpeg(outputFilePath As String, Optional settings As JpegSettings = Nothing) As Boolean
Parameters
Type Name Description
string outputFilePath

The destination file path.

JpegSettings settings

The set of parameters for the output image.

Returns
Type Description
bool

True if the browser process has exited; otherwise, false.