Class MultiPageOptions
ชื่อพื้นที่: Aspose.Imaging.ImageOptions การประกอบ: Aspose.Imaging.dll (25.4.0)
คลาสพื้นฐานสําหรับรูปแบบที่สนับสนุนหลายหน้า
[JsonObject(MemberSerialization.OptIn)]
public class MultiPageOptions
Inheritance
Derived
อนุญาโตตุลาการ
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(int[])
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.ImageOptions.MultiPageOptions
public MultiPageOptions(int[] pages)
Parameters
pages
int
[ ]
หน้า
MultiPageOptions(int[ ], ตรง)
เปิดตัวตัวอย่างใหม่ของคลาส 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
[ ]
The Aspose.Imaging.IntRange
MultiPageOptions(IntRange[ ], ตรง)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.ImageOptions.MultiPageOptions
public MultiPageOptions(IntRange[] ranges, Rectangle exportArea)
Parameters
ranges
IntRange
[ ]
The Aspose.Imaging.IntRange
exportArea
Rectangle
พื้นที่การส่งออก
MultiPageOptions(IntRange)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.ImageOptions.MultiPageOptions
public MultiPageOptions(IntRange range)
Parameters
range
IntRange
The Aspose.Imaging.IntRange
MultiPageOptions(อินเตอร์เรนซ์, Rectangle)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.ImageOptions.MultiPageOptions
public MultiPageOptions(IntRange range, Rectangle exportArea)
Parameters
range
IntRange
The Aspose.Imaging.IntRange
exportArea
Rectangle
พื้นที่การส่งออก
MultiPageOptions(int)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.ImageOptions.MultiPageOptions
public MultiPageOptions(int page)
Parameters
page
int
หน้าอินดัชนี
MultiPageOptions(int, ตรง)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.ImageOptions.MultiPageOptions
public MultiPageOptions(int page, Rectangle exportArea)
Parameters
page
int
หน้าอินดัชนี
exportArea
Rectangle
พื้นที่การส่งออก
Properties
ExportArea
รับหรือตั้งพื้นที่ส่งออก
public Rectangle ExportArea { get; set; }
คุณสมบัติมูลค่า
MergeLayers
ได้รับหรือตั้งค่าค่าแสดงให้เห็นว่า [merege layers]
public bool MergeLayers { get; set; }
คุณสมบัติมูลค่า
Mode
รับหรือตั้งโหมด
public MultiPageMode Mode { get; set; }
คุณสมบัติมูลค่า
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; }
คุณสมบัติมูลค่า
Methods
CheckModeAvailability(MultiPageMode)
ตรวจสอบการใช้งานโหมด
protected virtual void CheckModeAvailability(MultiPageMode mode)
Parameters
mode
MultiPageMode
โหมด indexes
InitPages(IntRange[])
เริ่มต้นหน้าจากแถว
public void InitPages(IntRange[] ranges)
Parameters
ranges
IntRange
[ ]
เกรด