Class MultiPageOptions
Nama dari : Aspose.Imaging.ImageOptions Pengumpulan: Aspose.Imaging.dll (25.5.0)
Kelas dasar untuk beberapa halaman format yang didukung
[JsonObject(MemberSerialization.OptIn)]
public class MultiPageOptionsInheritance
Derived
anggota yang diwarisi
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
MultiPageOptions()
Initifikasi contoh baru dari kelas Aspose.Imaging.ImageOptions.MultiPageOptions.
[JsonConstructor]
public MultiPageOptions()MultiPageOptions(int[])
Initifikasi contoh baru dari kelas Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(int[] pages)Parameters
pages int
[ ]
dan halaman tersebut.
MultiPageOptions(int[ ], dan rektangle)
Initifikasi contoh baru dari kelas Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(int[] pages, Rectangle exportArea)Parameters
pages int
[ ]
Berbagai macam halaman.
exportArea Rectangle
wilayah ekspor.
MultiPageOptions(String[])
Initifikasi contoh baru dari kelas Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(string[] pageTitles)Parameters
pageTitles string
[ ]
Judul halaman tersebut.
MultiPageOptions(String[ ], dan rektangle)
Initifikasi contoh baru dari kelas Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(string[] pageTitles, Rectangle exportArea)Parameters
pageTitles string
[ ]
Judul halaman tersebut.
exportArea Rectangle
wilayah ekspor.
MultiPageOptions(IntRange[])
Initifikasi contoh baru dari kelas Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(IntRange[] ranges)Parameters
ranges IntRange
[ ]
Ini adalah Aspose.Imaging.IntRange.
MultiPageOptions(IntRange[ ], dan rektangle)
Initifikasi contoh baru dari kelas Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(IntRange[] ranges, Rectangle exportArea)Parameters
ranges IntRange
[ ]
Ini adalah Aspose.Imaging.IntRange.
exportArea Rectangle
wilayah ekspor.
MultiPageOptions(IntRange)
Initifikasi contoh baru dari kelas Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(IntRange range)Parameters
range IntRange
Ini adalah Aspose.Imaging.IntRange.
MultiPageOptions(Rangkaian, Rectangle)
Initifikasi contoh baru dari kelas Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(IntRange range, Rectangle exportArea)Parameters
range IntRange
Ini adalah Aspose.Imaging.IntRange.
exportArea Rectangle
wilayah ekspor.
MultiPageOptions(int)
Initifikasi contoh baru dari kelas Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(int page)Parameters
page int
Indeks halaman tersebut.
MultiPageOptions(dan rectangle)
Initifikasi contoh baru dari kelas Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(int page, Rectangle exportArea)Parameters
page int
Indeks halaman tersebut.
exportArea Rectangle
wilayah ekspor.
Properties
ExportArea
Dapatkan atau menetapkan area ekspor.
public Rectangle ExportArea { get; set; }Nilai Properti
MergeLayers
Mendapatkan atau menetapkan nilai yang menunjukkan apakah [merege layer].
public bool MergeLayers { get; set; }Nilai Properti
Mode
Dapatkan atau menetapkan mode.
public MultiPageMode Mode { get; set; }Nilai Properti
OutputLayersNames
Dapatkan atau menetapkan nama lapisan output(Bekerja jika format ekspor mendukung lapisan nama, misalnya untuk Psd)
public string[] OutputLayersNames { get; set; }Nilai Properti
string [ ]
PageRasterizationOptions
Dapatkan atau menetapkan opsi rasterization halaman.
public VectorRasterizationOptions[] PageRasterizationOptions { get; set; }Nilai Properti
VectorRasterizationOptions [ ]
PageTitles
Dapatkan atau menetapkan judul halaman.
public string[] PageTitles { get; set; }Nilai Properti
string [ ]
Examples
Contoh ini menunjukkan bagaimana mengubah gambar DJVU berbilang halaman menjadi gambar TIFF berbilang bingkai.
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
Dapatkan atau menetapkan halaman.
public int[] Pages { get; set; }Nilai Properti
int [ ]
Examples
Contoh ini menunjukkan bagaimana mengubah gambar DJVU berbilang halaman menjadi gambar TIFF berbilang bingkai.
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
Dapatkan atau menetapkan interval waktu.
public TimeInterval TimeInterval { get; set; }Nilai Properti
Methods
CheckModeAvailability(MultiPageMode)
Periksa mode aplikasi.
protected virtual void CheckModeAvailability(MultiPageMode mode)Parameters
mode MultiPageMode
Indeks mode ini.
InitPages(IntRange[])
Inicialisasi halaman dari rangs array
public void InitPages(IntRange[] ranges)Parameters
ranges IntRange
[ ]
dari ranting.