[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.SaveAsPng

SaveAsPng Method

SaveAsPng(Stream, Rectangle?)

Saves the image into a Stream in PNG format.

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

The output stream.

Rectangle? clipRect

Clipping rectangle of the image to be saved.

SaveAsPng(string, Rectangle?)

Saves the image into a file in PNG format.

Declaration
public void SaveAsPng(string path, Rectangle? clipRect = null)
Public Sub SaveAsPng(path As String, Optional clipRect As Rectangle? = Nothing)
Parameters
Type Name Description
string path

The output file path.

Rectangle? clipRect

Clipping rectangle of the image to be saved.