Class MultiPageOptions

Class MultiPageOptions

名称: Aspose.Imaging.ImageOptions 收藏: Aspose.Imaging.dll (25.4.0)

多页支持格式的基础类

[JsonObject(MemberSerialization.OptIn)]
public class MultiPageOptions

Inheritance

object MultiPageOptions

Derived

DjvuMultiPageOptions

继承人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

MultiPageOptions()

启动 Aspose.Imaging.ImageOptions.MultiPageOptions 类的新例子。

[JsonConstructor]
public MultiPageOptions()

MultiPageOptions(因特[])

启动 Aspose.Imaging.ImageOptions.MultiPageOptions 类的新例子。

public MultiPageOptions(int[] pages)

Parameters

pages int ( )

页面。

MultiPageOptions(因特( ), 直角)

启动 Aspose.Imaging.ImageOptions.MultiPageOptions 类的新例子。

public MultiPageOptions(int[] pages, Rectangle exportArea)

Parameters

pages int ( )

各页的序列。

exportArea Rectangle

出口区。

MultiPageOptions(线条[])

启动 Aspose.Imaging.ImageOptions.MultiPageOptions 类的新例子。

public MultiPageOptions(string[] pageTitles)

Parameters

pageTitles string ( )

页面标题。

MultiPageOptions(线条( ), 直角)

启动 Aspose.Imaging.ImageOptions.MultiPageOptions 类的新例子。

public MultiPageOptions(string[] pageTitles, Rectangle exportArea)

Parameters

pageTitles string ( )

页面标题。

exportArea Rectangle

出口区。

MultiPageOptions(IntRange[])

启动 Aspose.Imaging.ImageOptions.MultiPageOptions 类的新例子。

public MultiPageOptions(IntRange[] ranges)

Parameters

ranges IntRange ( )

此分類上一篇:Imaging.IntRange

MultiPageOptions(IntRange( ), 直角)

启动 Aspose.Imaging.ImageOptions.MultiPageOptions 类的新例子。

public MultiPageOptions(IntRange[] ranges, Rectangle exportArea)

Parameters

ranges IntRange ( )

此分類上一篇:Imaging.IntRange

exportArea Rectangle

出口区。

MultiPageOptions(IntRange)

启动 Aspose.Imaging.ImageOptions.MultiPageOptions 类的新例子。

public MultiPageOptions(IntRange range)

Parameters

range IntRange

此分類上一篇:Imaging.IntRange

MultiPageOptions(直角,直角)

启动 Aspose.Imaging.ImageOptions.MultiPageOptions 类的新例子。

public MultiPageOptions(IntRange range, Rectangle exportArea)

Parameters

range IntRange

此分類上一篇:Imaging.IntRange

exportArea Rectangle

出口区。

MultiPageOptions(因特)

启动 Aspose.Imaging.ImageOptions.MultiPageOptions 类的新例子。

public MultiPageOptions(int page)

Parameters

page int

页面指数。

MultiPageOptions(直角,直角)

启动 Aspose.Imaging.ImageOptions.MultiPageOptions 类的新例子。

public MultiPageOptions(int page, Rectangle exportArea)

Parameters

page int

页面指数。

exportArea Rectangle

出口区。

Properties

ExportArea

接收或设置出口区域。

public Rectangle ExportArea { get; set; }

财产价值

Rectangle

MergeLayers

要么要么要么要么要么要么要么要么要么要么。

public bool MergeLayers { get; set; }

财产价值

bool

Mode

得到或设置模式。

public MultiPageMode Mode { get; set; }

财产价值

MultiPageMode

OutputLayersNames

获取或设置输出层名称(如果输出格式支持名称层,例如为PSD)

public string[] OutputLayersNames { get; set; }

财产价值

string ( )

PageRasterizationOptions

获取或设置页面拉斯特化选项。

public VectorRasterizationOptions[] PageRasterizationOptions { get; set; }

财产价值

VectorRasterizationOptions ( )

PageTitles

获取或设置页面标题。

public string[] PageTitles { get; set; }

财产价值

string ( )

Examples

此示例显示如何将多页 DJVU 图像转换为多框 TIFF 图像。

string dir = "c:\\temp\\";

                                                                                                 // Load a DJVU image from a file stream.
                                                                                                 using (System.IO.Stream stream = System.IO.File.OpenRead(dir + "sample.djvu"))
                                                                                                 {
                                                                                                     using (Aspose.Imaging.FileFormats.Djvu.DjvuImage djvuImage = new Aspose.Imaging.FileFormats.Djvu.DjvuImage(stream))
                                                                                                     {
                                                                                                         Aspose.Imaging.ImageOptions.TiffOptions saveOptions = new Aspose.Imaging.ImageOptions.TiffOptions(Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);
                                                                                                         saveOptions.Compression = Aspose.Imaging.FileFormats.Tiff.Enums.TiffCompressions.Deflate;

                                                                                                         // Note that if the image is colorful, it will be automatically converted to B/W format according to the option below:
                                                                                                         saveOptions.BitsPerSample = new ushort[] { 1 };

                                                                                                         saveOptions.MultiPageOptions = new Aspose.Imaging.ImageOptions.DjvuMultiPageOptions();

                                                                                                         // By default, all pages will be stored to the output TIFF, but the desired set of pages can be specified explicitly.
                                                                                                         // Only the first and the second page will be exported.
                                                                                                         saveOptions.MultiPageOptions.Pages = new int[] { 0, 1 };

                                                                                                         // Set page titles.
                                                                                                         saveOptions.MultiPageOptions.PageTitles = new string[] { "The First Page", "The Second Page" };

                                                                                                         // Save to TIFF
                                                                                                         djvuImage.Save(dir + "sample.tif", saveOptions);
                                                                                                     }
                                                                                                 }

Pages

接收或设置页面。

public int[] Pages { get; set; }

财产价值

int ( )

Examples

此示例显示如何将多页 DJVU 图像转换为多框 TIFF 图像。

string dir = "c:\\temp\\";

                                                                                                 // Load a DJVU image from a file stream.
                                                                                                 using (System.IO.Stream stream = System.IO.File.OpenRead(dir + "sample.djvu"))
                                                                                                 {
                                                                                                     using (Aspose.Imaging.FileFormats.Djvu.DjvuImage djvuImage = new Aspose.Imaging.FileFormats.Djvu.DjvuImage(stream))
                                                                                                     {
                                                                                                         Aspose.Imaging.ImageOptions.TiffOptions saveOptions = new Aspose.Imaging.ImageOptions.TiffOptions(Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.Default);
                                                                                                         saveOptions.Compression = Aspose.Imaging.FileFormats.Tiff.Enums.TiffCompressions.Deflate;

                                                                                                         // Note that if the image is colorful, it will be automatically converted to B/W format according to the option below:
                                                                                                         saveOptions.BitsPerSample = new ushort[] { 1 };

                                                                                                         saveOptions.MultiPageOptions = new Aspose.Imaging.ImageOptions.DjvuMultiPageOptions();

                                                                                                         // By default, all pages will be stored to the output TIFF, but the desired set of pages can be specified explicitly.
                                                                                                         // Only the first and the second page will be exported.
                                                                                                         saveOptions.MultiPageOptions.Pages = new int[] { 0, 1 };

                                                                                                         // Set page titles.
                                                                                                         saveOptions.MultiPageOptions.PageTitles = new string[] { "The First Page", "The Second Page" };

                                                                                                         // Save to TIFF
                                                                                                         djvuImage.Save(dir + "sample.tif", saveOptions);
                                                                                                     }
                                                                                                 }

TimeInterval

接收或设置时间间隔。

public TimeInterval TimeInterval { get; set; }

财产价值

TimeInterval

Methods

CheckModeAvailability(MultiPageMode)

检查应用模式。

protected virtual void CheckModeAvailability(MultiPageMode mode)

Parameters

mode MultiPageMode

模式指数。

InitPages(IntRange[])

启动页面从序列范围

public void InitPages(IntRange[] ranges)

Parameters

ranges IntRange ( )

等级的。

 中文