Class MultiPageOptions
Název místa: Aspose.Imaging.ImageOptions Shromáždění: Aspose.Imaging.dll (25.5.0)
Základní třída pro více stran podporovaných formátů
[JsonObject(MemberSerialization.OptIn)]
public class MultiPageOptionsInheritance
Derived
Dědiční členové
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
MultiPageOptions()
Začíná nový příklad třídy Aspose.Imaging.ImageOptions.MultiPageOptions.
[JsonConstructor]
public MultiPageOptions()MultiPageOptions(Int[])
Začíná nový příklad třídy Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(int[] pages)Parameters
pages int
[]a[]
A ty stránky.
MultiPageOptions(Int[]a[], rektangle)
Začíná nový příklad třídy Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(int[] pages, Rectangle exportArea)Parameters
pages int
[]a[]
A řada stránek.
exportArea Rectangle
V oblasti vývozu.
MultiPageOptions(Stringová[])
Začíná nový příklad třídy Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(string[] pageTitles)Parameters
pageTitles string
[]a[]
Tituly na stránce.
MultiPageOptions(Stringová[]a[], rektangle)
Začíná nový příklad třídy Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(string[] pageTitles, Rectangle exportArea)Parameters
pageTitles string
[]a[]
Tituly na stránce.
exportArea Rectangle
V oblasti vývozu.
MultiPageOptions(IntRange[])
Začíná nový příklad třídy Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(IntRange[] ranges)Parameters
ranges IntRange
[]a[]
Připomínáme si, že je to vnímání.IntRange.
MultiPageOptions(IntRange[]a[], rektangle)
Začíná nový příklad třídy Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(IntRange[] ranges, Rectangle exportArea)Parameters
ranges IntRange
[]a[]
Připomínáme si, že je to vnímání.IntRange.
exportArea Rectangle
V oblasti vývozu.
MultiPageOptions(IntRange)
Začíná nový příklad třídy Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(IntRange range)Parameters
range IntRange
Připomínáme si, že je to vnímání.IntRange.
MultiPageOptions(Rektangle, Rektangle)
Začíná nový příklad třídy Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(IntRange range, Rectangle exportArea)Parameters
range IntRange
Připomínáme si, že je to vnímání.IntRange.
exportArea Rectangle
V oblasti vývozu.
MultiPageOptions(Int)
Začíná nový příklad třídy Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(int page)Parameters
page int
Index na stránkách.
MultiPageOptions(Rektangle, Rektangle)
Začíná nový příklad třídy Aspose.Imaging.ImageOptions.MultiPageOptions.
public MultiPageOptions(int page, Rectangle exportArea)Parameters
page int
Index na stránkách.
exportArea Rectangle
V oblasti vývozu.
Properties
ExportArea
Získáte nebo nastavíte vývozní oblast.
public Rectangle ExportArea { get; set; }Hodnota nemovitosti
MergeLayers
Obdrží nebo nastaví hodnotu naznačující, zda [meregové vrstvy].
public bool MergeLayers { get; set; }Hodnota nemovitosti
Mode
Obdržíte nebo nastavíte módu.
public MultiPageMode Mode { get; set; }Hodnota nemovitosti
OutputLayersNames
Obdržíte nebo nastavíte názvy výstupních vrstev(Pracujeme, pokud exportní formát podporuje názvy vrstev, například pro PSD)
public string[] OutputLayersNames { get; set; }Hodnota nemovitosti
string []a[]
PageRasterizationOptions
Získáte nebo nastavíte možnosti rasterizace stránky.
public VectorRasterizationOptions[] PageRasterizationOptions { get; set; }Hodnota nemovitosti
VectorRasterizationOptions []a[]
PageTitles
Obdržíte nebo nastavíte titulky stránek.
public string[] PageTitles { get; set; }Hodnota nemovitosti
string []a[]
Examples
Tento příklad ukazuje, jak převést vícestránkový obraz DJVU na vícestránkový obraz 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
Obdržíte nebo nastavte stránky.
public int[] Pages { get; set; }Hodnota nemovitosti
int []a[]
Examples
Tento příklad ukazuje, jak převést vícestránkový obraz DJVU na vícestránkový obraz 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
Obdržíte nebo nastavíte časový interval.
public TimeInterval TimeInterval { get; set; }Hodnota nemovitosti
Methods
CheckModeAvailability(MultiPageMode)
Zkontrolujte režim aplikace.
protected virtual void CheckModeAvailability(MultiPageMode mode)Parameters
mode MultiPageMode
Indikátory režimu.
InitPages(IntRange[])
Iniciovat stránky z řad array
public void InitPages(IntRange[] ranges)Parameters
ranges IntRange
[]a[]
Na řadách.