Click or drag to resize
ImageSaveOptions Constructor (ImageSaveFormat)
Initializes a new instance of the ImageSaveOptions class for a specific image format.

Namespace: GemBox.Spreadsheet
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1000
Syntax
public ImageSaveOptions(
	ImageSaveFormat imageFormat
)

Parameters

imageFormat
Type: GemBox.SpreadsheetImageSaveFormat
The image format.
Examples

Following code demonstrates how to save ExcelFile to image.

// Save first page of the active sheet to .gif image format
ef.Save("Image.gif");

// Save sheet to .jpeg image format. Image will have dimensions: 1024px * 800px
ef.Save("Image.jpeg", new ImageSaveOptions()
{
    Width = 1024,
    Height = 800
});
See Also