SheetRender.ToTiff
Contents
[
Hide
]ToTiff(Stream)
Render whole worksheet as Tiff Image to stream.
public void ToTiff(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | Stream | the stream of the output image |
See Also
- class SheetRender
- namespace Aspose.Cells.Rendering
- assembly Aspose.Cells
ToTiff(string)
Render whole worksheet as Tiff Image to a file.
public void ToTiff(string filename)
Parameter | Type | Description |
---|---|---|
filename | String | the filename of the output image |
Examples
The following code outputs all the pages of the first sheet to Tiff image.
//load the source file with images.
Workbook wb = new Workbook("Book1.xlsx");
ImageOrPrintOptions imgOpt = new ImageOrPrintOptions();
//set output image type.
imgOpt.SaveFormat = SaveFormat.Tiff;
//render the first sheet.
SheetRender sr = new SheetRender(wb.Worksheets[0], imgOpt);
//output all the pages of the sheet to Tiff image.
sr.ToTiff("output.tiff");
See Also
- class SheetRender
- namespace Aspose.Cells.Rendering
- assembly Aspose.Cells