Click or drag to resize

XlsWorkbook SaveAsImages Method (Int32, Int32, Int32, Int32, Int32, Single, Single)

Saves the specified range of cells in the specified sheet as an image.

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public Image SaveAsImages(
	int sheetIndex,
	int firstRow,
	int firstColumn,
	int lastRow,
	int lastColumn,
	float dpiX,
	float dpiY
)

Parameters

sheetIndex
Type: System Int32
The index of the sheet to save.
firstRow
Type: System Int32
The index of the first row to save.
firstColumn
Type: System Int32
The index of the first column to save.
lastRow
Type: System Int32
The index of the last row to save.
lastColumn
Type: System Int32
The index of the last column to save.
dpiX
Type: System Single
The horizontal dots per inch (DPI) value for the image.
dpiY
Type: System Single
The vertical dots per inch (DPI) value for the image.

Return Value

Type: Image
The saved image.
See Also