[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Page.SaveAsPng

SaveAsPng Method

SaveAsPng(Stream, ViewState, SaveAsImageOptions)

Saves the page as an image to a stream in PNG format.

Declaration
public void SaveAsPng(Stream stream, ViewState viewState, SaveAsImageOptions options = null)
Public Sub SaveAsPng(stream As Stream, viewState As ViewState, Optional options As SaveAsImageOptions = Nothing)
Parameters
Type Name Description
Stream stream

The output stream.

ViewState viewState

The document view state.

SaveAsImageOptions options

The SaveAsImageOptions object.

SaveAsPng(Stream, SaveAsImageOptions)

Saves the page as an image to a stream in PNG format.

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

The output stream.

SaveAsImageOptions options

The SaveAsImageOptions object.

SaveAsPng(string, ViewState, SaveAsImageOptions)

Saves the page as an image to a file in PNG format.

Declaration
public void SaveAsPng(string filePath, ViewState viewState, SaveAsImageOptions options = null)
Public Sub SaveAsPng(filePath As String, viewState As ViewState, Optional options As SaveAsImageOptions = Nothing)
Parameters
Type Name Description
string filePath

The output file path.

ViewState viewState

The document view state.

SaveAsImageOptions options

The SaveAsImageOptions object.

SaveAsPng(string, SaveAsImageOptions)

Saves the page as an image to a file in PNG format.

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

The output file path.

SaveAsImageOptions options

The SaveAsImageOptions object.