Class OtgImage

Class OtgImage

Název místa: Aspose.Imaging.FileFormats.OpenDocument Shromáždění: Aspose.Imaging.dll (25.4.0)

Proces OpenDocument Template (OTG) kreslení obrázkových souborů s naším APIFormát OpenDocument XML s grafickým obsahem pro bezproblémovou manipulaci.Snadno rozmazat dokumenty, přizpůsobit barvy pozadí a upravit rozměry stránek,Zajištění optimální kontroly a flexibility pro vaše vektorové grafické projekty OTG.

[JsonObject(MemberSerialization.OptIn)]
public class OtgImage : OdImage, IDisposable, IObjectWithBounds, IObjectWithSizeF, IMultipageImage

Inheritance

object DisposableObject DataStreamSupporter Image VectorImage VectorMultipageImage OdImage OtgImage

Implements

IDisposable , IObjectWithBounds , IObjectWithSizeF , IMultipageImage

Dědiční členové

OdImage.ReleaseManagedResources() , OdImage.DefaultPage , OdImage.IsCached , OdImage.BitsPerPixel , OdImage.PageCount , OdImage.Metadata , OdImage.Records , VectorMultipageImage.CacheData() , VectorMultipageImage.Crop(Rectangle) , VectorMultipageImage.Resize(int, int, ResizeType) , VectorMultipageImage.Rotate(float) , VectorMultipageImage.Resize(int, int, ImageResizeSettings) , VectorMultipageImage.RotateFlip(RotateFlipType) , VectorMultipageImage.RemoveBackground(RemoveBackgroundSettings) , VectorMultipageImage.RemoveBackground() , VectorMultipageImage.SetPalette(IColorPalette, bool) , VectorMultipageImage.GetEmbeddedImages() , VectorMultipageImage.SaveData(Stream) , VectorMultipageImage.GetSerializedStream(ImageOptionsBase, Rectangle, out int) , VectorMultipageImage.ReleaseManagedResources() , VectorMultipageImage.PageCount , VectorMultipageImage.Pages , VectorMultipageImage.DefaultPage , VectorMultipageImage.IsCached , VectorMultipageImage.BitsPerPixel , VectorMultipageImage.Width , VectorMultipageImage.Height , VectorMultipageImage.PageExportingAction , VectorImage.GetEmbeddedImages() , VectorImage.RemoveBackground() , VectorImage.RemoveBackground(RemoveBackgroundSettings) , VectorImage.Resize(int, int, ResizeType) , VectorImage.Resize(int, int, ImageResizeSettings) , VectorImage.RotateFlip(RotateFlipType) , VectorImage.Crop(Rectangle) , VectorImage.Rotate(float) , VectorImage.Modify(RectangleF, float, float, float) , VectorImage.SizeF , VectorImage.WidthF , VectorImage.HeightF , VectorImage.Width , VectorImage.Height , Image.CanLoad(string) , Image.CanLoad(string, LoadOptions) , Image.CanLoad(Stream) , Image.CanLoad(Stream, LoadOptions) , Image.Create(ImageOptionsBase, int, int) , Image.Create(Image[]) , Image.Create(MultipageCreateOptions) , Image.Create(string[], bool) , Image.Create(string[]) , Image.Create(Image[], bool) , Image.GetFileFormat(string) , Image.GetFileFormat(Stream) , Image.GetFittingRectangle(Rectangle, int, int) , Image.GetFittingRectangle(Rectangle, int[], int, int) , Image.Load(string, LoadOptions) , Image.Load(string) , Image.Load(Stream, LoadOptions) , Image.Load(Stream) , Image.GetProportionalWidth(int, int, int) , Image.GetProportionalHeight(int, int, int) , Image.RemoveMetadata() , Image.CanSave(ImageOptionsBase) , Image.Resize(int, int) , Image.Resize(int, int, ResizeType) , Image.Resize(int, int, ImageResizeSettings) , Image.GetDefaultOptions(object[]) , Image.GetOriginalOptions() , Image.ResizeWidthProportionally(int) , Image.ResizeHeightProportionally(int) , Image.ResizeWidthProportionally(int, ResizeType) , Image.ResizeHeightProportionally(int, ResizeType) , Image.ResizeWidthProportionally(int, ImageResizeSettings) , Image.ResizeHeightProportionally(int, ImageResizeSettings) , Image.RotateFlip(RotateFlipType) , Image.Rotate(float) , Image.Crop(Rectangle) , Image.Crop(int, int, int, int) , Image.Save() , Image.Save(string) , Image.Save(string, ImageOptionsBase) , Image.Save(string, ImageOptionsBase, Rectangle) , Image.Save(Stream, ImageOptionsBase) , Image.Save(Stream, ImageOptionsBase, Rectangle) , Image.GetSerializedStream(ImageOptionsBase, Rectangle, out int) , Image.SetPalette(IColorPalette, bool) , Image.UpdateContainer(Image) , Image.GetCanNotSaveMessage(ImageOptionsBase) , Image.GetFitRectangle(Rectangle) , Image.GetImage2Export(ImageOptionsBase, Rectangle, IImageExporter) , Image.GetFitRectangle(Rectangle, int[]) , Image.OnPaletteChanged(IColorPalette, IColorPalette) , Image.OnPaletteChanging(IColorPalette, IColorPalette) , Image.ReleaseManagedResources() , Image.BitsPerPixel , Image.Bounds , Image.Container , Image.Height , Image.Palette , Image.UsePalette , Image.Size , Image.Width , Image.InterruptMonitor , Image.BufferSizeHint , Image.AutoAdjustPalette , Image.HasBackgroundColor , Image.FileFormat , Image.BackgroundColor , DataStreamSupporter.timeout , DataStreamSupporter.CacheData() , DataStreamSupporter.Save() , DataStreamSupporter.Save(Stream) , DataStreamSupporter.Save(string) , DataStreamSupporter.Save(string, bool) , DataStreamSupporter.SaveData(Stream) , DataStreamSupporter.ReleaseManagedResources() , DataStreamSupporter.OnDataStreamContainerChanging(StreamContainer) , DataStreamSupporter.DataStreamContainer , DataStreamSupporter.IsCached , DisposableObject.Dispose() , DisposableObject.ReleaseManagedResources() , DisposableObject.ReleaseUnmanagedResources() , DisposableObject.VerifyNotDisposed() , DisposableObject.Disposed , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Následující kódový snímek ukazuje, jak převést obrázek OTG do PDF a dalších obrazových formát.

string dir = "c:\\aspose.imaging\\issues\\net\\3567\\";
                                                                                                              string inputFilePath = dir + "VariousObjectsMultiPage.otg";
                                                                                                              Aspose.Imaging.ImageOptionsBase[] options = { new Aspose.Imaging.ImageOptions.PngOptions(), new Aspose.Imaging.ImageOptions.PdfOptions() };
                                                                                                              foreach (Aspose.Imaging.ImageOptionsBase saveOptions in options)
                                                                                                              {
                                                                                                                  string extension = saveOptions is Aspose.Imaging.ImageOptions.PngOptions ? ".png" : ".pdf";
                                                                                                                  using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(inputFilePath))
                                                                                                                  {
                                                                                                                      Aspose.Imaging.ImageOptions.OtgRasterizationOptions otgRasterizationOptions = new Aspose.Imaging.ImageOptions.OtgRasterizationOptions();
                                                                                                                      otgRasterizationOptions.PageSize = image.Size;
                                                                                                                      saveOptions.VectorRasterizationOptions = otgRasterizationOptions;

                                                                                                                      image.Save(inputFilePath + extension, saveOptions);
                                                                                                                  }
                                                                                                              }

Constructors

OtgImage(StreamContainer a LoadOptions)

Začněte s novým objektem Aspose.Imaging.FileFormats.OpenDocument.OtgImage tím, že poskytnete tokový kontejnerTento konstruktor umožňuje vývojářům efektivně nabíjet OTGsnímky ze streamů při určování nastavení přizpůsobeného nabíjen.

public OtgImage(StreamContainer streamContainer, LoadOptions loadOptions)

Parameters

streamContainer StreamContainer

To je proud.

loadOptions LoadOptions

Možnosti nabíjen.

OtgImage(StreamContainer)

Vytvořte nový objekt třídy Aspose.Imaging.FileFormats.OpenDocument.OtgImage poskytnutím tokuTento konstruktor umožňuje vývojářům vytvářet obrazy OTG přímo zproudové kontejnery, zjednodušující proces práce s daty obrazu OTG.

public OtgImage(StreamContainer streamContainer)

Parameters

streamContainer StreamContainer

Přechodový kontejner.

Properties

FileFormat

Tato vlastnost poskytuje přístup k formátu souboru OTG, který nabízí klíčové poznatkydo typu dat vkládaných do souboru snímku. slouží jako pivotníreferenční bod pro vývojáře softwaru, které jim umožní efektivně zvládnout OTGsoubory v rámci jejich aplikací. Použitím této vlastnosti můžetezjistit specifický formát obrázkového souboru, usnadňující bezdrátovéIntegrace a manipulace souborů OTG do jejich softwarových systém.

public override FileFormat FileFormat { get; }

Hodnota nemovitosti

FileFormat

Pages

Odstraňuje sběr stránek souvisejících s obrázkem, což umožňuje softwarevývojáři přístup a manipulovat s každou jednotlivou stránkou efektivně.majetek usnadňuje bezdrátovou iterace prostřednictvím stránek pro různé operace,zlepšení funkčnosti a všestrannosti aplikací pro zpracování obraz.

public override Image[] Pages { get; }

Hodnota nemovitosti

Image []a[]

Methods

GetDefaultOptions(Objekt[])

Odstraní výchozí možnosti nastavené pro obrázek, poskytuje pohodlnézpůsob přístupu a změny výchozích nastavení. tato vlastnost zajišťuje konzistenciv operacích nabízením předdefinovaných nastavení, které odpovídají běžným případům použit,zjednodušení procesu rozvoje.

public override ImageOptionsBase GetDefaultOptions(object[] args)

Parameters

args object []a[]

a argumenty.

Returns

ImageOptionsBase

Defaultní možnosti

 Čeština