to_tiff yöntemi

İçindekiler
[ ]

to_tiff

Akış için tüm çalışma sayfasını Tiff Image olarak işleyin.

def to_tiff(self, stream):
    ...
ParametreTipTanım
streamio.RawIOBaseçıktı görüntüsünün akışı

to_tiff

Çalışma sayfasının tamamını Tiff Görüntüsü olarak bir dosyaya dönüştürün.

def to_tiff(self, filename):
    ...
ParametreTipTanım
filenamestrçıktı görüntüsünün dosya adı

Örnek

Aşağıdaki kod, ilk sayfanın tüm sayfalarını Tiff görüntüsüne çıkarır.

from aspose.cells import SaveFormat, Workbook
from aspose.cells.rendering import ImageOrPrintOptions, SheetRender

# load the source file with images.
wb = Workbook("Book1.xlsx")
imgOpt = ImageOrPrintOptions()
# set output image type.
imgOpt.save_format = SaveFormat.TIFF
# render the first sheet.
sr = SheetRender(wb.worksheets[0], imgOpt)
# output all the pages of the sheet to Tiff image.
sr.to_tiff("output.tiff")

Ayrıca bakınız