Class ImageConverter

信息

转换模板文件为pdf的转换器。

public class ImageConverter

继承

objectImageConverter

继承的成员

示例

 1private class MyImageSaveOptions : ImageSaveOptions
 2{
 3    private const string ResultBase = "result/images/";
 4    public override Stream GetStream(int pageIndex)
 5    {
 6        return File.Create(ResultBase + "res_" + pageIndex + ".png");
 7    }
 8}
 9ImageConverter converter = new ImageConverter();
10LoadOptions loadOptions = new LoadOptions();
11loadOptions.InputFile = "Template.xlsx";
12ImageSaveOptions saveOptions = new MyImageSaveOptions();
13converter.Process(loadOptions, saveOptions);

构造函数

ImageConverter()

public ImageConverter()

方法

Process(LoadOptions, ImageSaveOptions)

将模板文件转换为图像

public void Process(LoadOptions loadOptions, ImageSaveOptions saveOptions)

参数

命名空间: Sheetize 程序集: Sheetize.dll

 中文