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(إنت[])
يبدأ مثالًا جديدًا من فئة 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
[ ]
أضف تعليق حول Aspose.Imaging.IntRange
MultiPageOptions(IntRange[ ]اليمين اليمين)
يبدأ مثالًا جديدًا من فئة Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(IntRange[] ranges, Rectangle exportArea)
Parameters
ranges
IntRange
[ ]
أضف تعليق حول Aspose.Imaging.IntRange
exportArea
Rectangle
منطقة التصدير .
MultiPageOptions(IntRange)
يبدأ مثالًا جديدًا من فئة Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(IntRange range)
Parameters
range
IntRange
أضف تعليق حول Aspose.Imaging.IntRange
MultiPageOptions(إنتراينج، إنتراينج)
يبدأ مثالًا جديدًا من فئة Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(IntRange range, Rectangle exportArea)
Parameters
range
IntRange
أضف تعليق حول Aspose.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; }
قيمة الممتلكات
MergeLayers
وَقَالَ رَسُولُ اللَّهِ - صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ -: «يَا أَيُّهَا الَّذِينَ آمَنُوا اتَّقُوا اللَّهَ وَاتَّقُوا اللَّهَ».
public bool MergeLayers { get; set; }
قيمة الممتلكات
Mode
احصل على أو وضع الوضع.
public MultiPageMode Mode { get; set; }
قيمة الممتلكات
OutputLayersNames
يحصل أو يضع أسماء طبقات الإخراج(العمل إذا كان تنسيق الإخراج يدعم طبقات الإخراج، على سبيل المثال لـ Psd)
public string[] OutputLayersNames { get; set; }
قيمة الممتلكات
string [ ]
PageRasterizationOptions
يحصل أو يضع خيارات rasterization الصفحة.
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
معدل التصنيف .
InitPages(IntRange[])
يبدأ الصفحات من صفوف الترتيب
public void InitPages(IntRange[] ranges)
Parameters
ranges
IntRange
[ ]
من صفوفه .