[]
Saves the specified range in the sheet to the specified image file.
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
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. |
Due to the limitation of GDI+, the width and height cannot exceed 10000 pixels.