Class MultiPageOptions
Tên không gian: Aspose.Imaging.ImageOptions Tổng hợp: Aspose.Imaging.dll (25.4.0)
Khóa học cơ bản cho các định dạng hỗ trợ nhiều trang
[JsonObject(MemberSerialization.OptIn)]
public class MultiPageOptions
Inheritance
Derived
Thành viên thừa kế
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
MultiPageOptions()
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.ImageOptions.MultiPageOps.
[JsonConstructor]
public MultiPageOptions()
MultiPageOptions(int[])
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.ImageOptions.MultiPageOps.
public MultiPageOptions(int[] pages)
Parameters
pages
int
[ ]
Các trang
MultiPageOptions(int[ ], Vòng thẳng)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.ImageOptions.MultiPageOps.
public MultiPageOptions(int[] pages, Rectangle exportArea)
Parameters
pages
int
[ ]
Số lượng các trang.
exportArea
Rectangle
Khu vực xuất khẩu
MultiPageOptions(String[])
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.ImageOptions.MultiPageOps.
public MultiPageOptions(string[] pageTitles)
Parameters
pageTitles
string
[ ]
Các trang tiêu đề
MultiPageOptions(String[ ], Vòng thẳng)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.ImageOptions.MultiPageOps.
public MultiPageOptions(string[] pageTitles, Rectangle exportArea)
Parameters
pageTitles
string
[ ]
Các trang tiêu đề
exportArea
Rectangle
Khu vực xuất khẩu
MultiPageOptions(IntRange[])
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.ImageOptions.MultiPageOps.
public MultiPageOptions(IntRange[] ranges)
Parameters
ranges
IntRange
[ ]
Các Aspose.Imaging.IntRange
MultiPageOptions(IntRange[ ], Vòng thẳng)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.ImageOptions.MultiPageOps.
public MultiPageOptions(IntRange[] ranges, Rectangle exportArea)
Parameters
ranges
IntRange
[ ]
Các Aspose.Imaging.IntRange
exportArea
Rectangle
Khu vực xuất khẩu
MultiPageOptions(IntRange)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.ImageOptions.MultiPageOps.
public MultiPageOptions(IntRange range)
Parameters
range
IntRange
Các Aspose.Imaging.IntRange
MultiPageOptions(Nhóm: IntRange, Rectangle)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.ImageOptions.MultiPageOps.
public MultiPageOptions(IntRange range, Rectangle exportArea)
Parameters
range
IntRange
Các Aspose.Imaging.IntRange
exportArea
Rectangle
Khu vực xuất khẩu
MultiPageOptions(int)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.ImageOptions.MultiPageOps.
public MultiPageOptions(int page)
Parameters
page
int
Trang chỉ số
MultiPageOptions(Nhãn hiệu: Rectangle)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.ImageOptions.MultiPageOps.
public MultiPageOptions(int page, Rectangle exportArea)
Parameters
page
int
Trang chỉ số
exportArea
Rectangle
Khu vực xuất khẩu
Properties
ExportArea
Nhận hoặc đặt khu vực xuất khẩu.
public Rectangle ExportArea { get; set; }
Giá trị bất động sản
MergeLayers
Nhận hoặc đặt một giá trị cho biết [merege layers].
public bool MergeLayers { get; set; }
Giá trị bất động sản
Mode
Nhận hoặc đặt chế độ.
public MultiPageMode Mode { get; set; }
Giá trị bất động sản
OutputLayersNames
Nhận hoặc đặt tên các lớp xuất khẩu(Hành động nếu định dạng xuất khẩu hỗ trợ các lớp tên, ví dụ, cho Psd)
public string[] OutputLayersNames { get; set; }
Giá trị bất động sản
string [ ]
PageRasterizationOptions
Nhận hoặc đặt các tùy chọn rasterization trang.
public VectorRasterizationOptions[] PageRasterizationOptions { get; set; }
Giá trị bất động sản
VectorRasterizationOptions [ ]
PageTitles
Nhận hoặc đặt các tiêu đề trang.
public string[] PageTitles { get; set; }
Giá trị bất động sản
string [ ]
Examples
Ví dụ này cho thấy làm thế nào để chuyển đổi một hình ảnh DJVU đa trang thành một Hình ảnh TIFF đa khung.
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
Nhận hoặc đặt các trang.
public int[] Pages { get; set; }
Giá trị bất động sản
int [ ]
Examples
Ví dụ này cho thấy làm thế nào để chuyển đổi một hình ảnh DJVU đa trang thành một Hình ảnh TIFF đa khung.
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
Nhận hoặc đặt khoảng thời gian.
public TimeInterval TimeInterval { get; set; }
Giá trị bất động sản
Methods
CheckModeAvailability(MultiPageMode)
Kiểm tra chế độ ứng dụng
protected virtual void CheckModeAvailability(MultiPageMode mode)
Parameters
mode
MultiPageMode
Các mod index.
InitPages(IntRange[])
Bắt đầu các trang từ ranges array
public void InitPages(IntRange[] ranges)
Parameters
ranges
IntRange
[ ]
Các ranh giới