[]
        
(Showing Draft Content)

FarPoint.Win.Spread.SheetView.SaveImage

SaveImage Method

SaveImage(int, int, int, int, int, int, WorksheetSubType)

Saves the specified range in the sheet to the specified image file.

Declaration
public Bitmap SaveImage(int row, int column, int rowCount, int columnCount, int width = 0, int height = 0, WorksheetSubType includedAreas = WorksheetSubType.Normal)
Public Function SaveImage(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, Optional width As Integer = 0, Optional height As Integer = 0, Optional includedAreas As WorksheetSubType = WorksheetSubType.Normal) As Bitmap
Parameters
Type Name Description
int row

The top row of the range.

int column

The left column of the range.

int rowCount

The total number of rows in the range.

int columnCount

The total number of columns in the range.

int width

The width of exported image. 0 to use the actual width of the range.

int height

The height of exported image. 0 to use the actual height of the range.

WorksheetSubType includedAreas

A WorksheetSubType value indicating which areas will be included into the saved image.

Returns
Type Description
Bitmap

A Bitmap instance represents the image of the range.

Remarks

Due to the limitation of GDI+, the width and height cannot exceed 10000 pixels.