Class MultiPageOptions
Nazwa przestrzeń: Aspose.Imaging.ImageOptions Zgromadzenie: Aspose.Imaging.dll (25.4.0)
Klasa podstawowa dla wielu stron obsługiwanych formatów
[JsonObject(MemberSerialization.OptIn)]
public class MultiPageOptions
Inheritance
Derived
Dziedziczeni członkowie
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
MultiPageOptions()
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.
[JsonConstructor]
public MultiPageOptions()
MultiPageOptions(Int[])
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.
public MultiPageOptions(int[] pages)
Parameters
pages
int
[ ]
Na stronach.
MultiPageOptions(Int[ ], i rektangle)
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.
public MultiPageOptions(int[] pages, Rectangle exportArea)
Parameters
pages
int
[ ]
Różnica stron.
exportArea
Rectangle
w obszarze eksportu.
MultiPageOptions(strumień[])
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.
public MultiPageOptions(string[] pageTitles)
Parameters
pageTitles
string
[ ]
Tytuły strony .
MultiPageOptions(strumień[ ], i rektangle)
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.
public MultiPageOptions(string[] pageTitles, Rectangle exportArea)
Parameters
pageTitles
string
[ ]
Tytuły strony .
exportArea
Rectangle
w obszarze eksportu.
MultiPageOptions(IntRange[])
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.
public MultiPageOptions(IntRange[] ranges)
Parameters
ranges
IntRange
[ ]
Wskaźnik Aspose.Imaging.IntRange
MultiPageOptions(IntRange[ ], i rektangle)
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.
public MultiPageOptions(IntRange[] ranges, Rectangle exportArea)
Parameters
ranges
IntRange
[ ]
Wskaźnik Aspose.Imaging.IntRange
exportArea
Rectangle
w obszarze eksportu.
MultiPageOptions(IntRange)
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.
public MultiPageOptions(IntRange range)
Parameters
range
IntRange
Wskaźnik Aspose.Imaging.IntRange
MultiPageOptions(Rękawiczki, Rectangle)
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.
public MultiPageOptions(IntRange range, Rectangle exportArea)
Parameters
range
IntRange
Wskaźnik Aspose.Imaging.IntRange
exportArea
Rectangle
w obszarze eksportu.
MultiPageOptions(Int)
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.
public MultiPageOptions(int page)
Parameters
page
int
Wskaźnik strony .
MultiPageOptions(Rektangle, Rektangle)
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.
public MultiPageOptions(int page, Rectangle exportArea)
Parameters
page
int
Wskaźnik strony .
exportArea
Rectangle
w obszarze eksportu.
Properties
ExportArea
Zostaw lub ustaw obszar eksportu.
public Rectangle ExportArea { get; set; }
Wartość nieruchomości
MergeLayers
Otrzymuje lub ustawia wartość wskazującą, czy [merege warstwy].
public bool MergeLayers { get; set; }
Wartość nieruchomości
Mode
Dostęp lub ustawienie trybu.
public MultiPageMode Mode { get; set; }
Wartość nieruchomości
OutputLayersNames
otrzymuje lub ustawia nazwy warstw wyjściowych(Wydaje się, jeśli format eksportu obsługuje nazwy warstw, na przykład dla PSD)
public string[] OutputLayersNames { get; set; }
Wartość nieruchomości
string [ ]
PageRasterizationOptions
Otrzymuje lub ustawia opcje rasteryzacji strony.
public VectorRasterizationOptions[] PageRasterizationOptions { get; set; }
Wartość nieruchomości
VectorRasterizationOptions [ ]
PageTitles
Otrzymuje lub ustawia tytuły strony.
public string[] PageTitles { get; set; }
Wartość nieruchomości
string [ ]
Examples
Ten przykład pokazuje, jak przekonwertować obraz DJVU z wielu stron na obraz TIFF z wieloma ramami.
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
Dostęp lub ustawienie stron.
public int[] Pages { get; set; }
Wartość nieruchomości
int [ ]
Examples
Ten przykład pokazuje, jak przekonwertować obraz DJVU z wielu stron na obraz TIFF z wieloma ramami.
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
Zostaw lub ustaw czasowy.
public TimeInterval TimeInterval { get; set; }
Wartość nieruchomości
Methods
CheckModeAvailability(MultiPageMode)
Sprawdź aplikację mody.
protected virtual void CheckModeAvailability(MultiPageMode mode)
Parameters
mode
MultiPageMode
Wskaźnik mody.
InitPages(IntRange[])
Inicjalizuje strony z rangi array
public void InitPages(IntRange[] ranges)
Parameters
ranges
IntRange
[ ]
z rzęs.