[]
        
(Showing Draft Content)

GrapeCity.Documents.Html.HtmlPage.SaveAsPng

SaveAsPng Method

SaveAsPng(string, PngOptions)

Saves the current page as a PNG image file.

Declaration
public void SaveAsPng(string outputFilePath, PngOptions options = null)
Public Sub SaveAsPng(outputFilePath As String, Optional options As PngOptions = Nothing)
Parameters
Type Name Description
string outputFilePath

The destination file path.

PngOptions options

The set of parameters for the output PNG image.

SaveAsPng(Stream, PngOptions)

Saves the current page to a stream in PNG format.

Declaration
public void SaveAsPng(Stream outputStream, PngOptions options = null)
Public Sub SaveAsPng(outputStream As Stream, Optional options As PngOptions = Nothing)
Parameters
Type Name Description
Stream outputStream

The destination stream.

PngOptions options

The set of parameters for the output PNG image.