Table of Contents

Class OtgImage

Namespace
Aspose.Imaging.FileFormats.OpenDocument
Assembly
Aspose.Imaging.dll

Process OpenDocument Template (OTG) drawing image files with our API, leveraging the OpenDocument XML format with Graphics Content for seamless manipulation. Easily parse documents, customize background colors, and adjust page dimensions, ensuring optimal control and flexibility for your OTG vector graphics projects.

public class OtgImage : OdImage, IDisposable, IObjectWithBounds, IObjectWithSizeF, IMultipageImage
Inheritance
OtgImage
Implements
Inherited Members

Constructors

OtgImage(StreamContainer)

Create a new object of the OtgImage class by supplying a stream container. This constructor enables developers to create OTG images directly from stream containers, streamlining the process of working with OTG image data.

public OtgImage(StreamContainer streamContainer)

Parameters

streamContainer StreamContainer

The stream container.

OtgImage(StreamContainer, LoadOptions)

Initialize a new OtgImage object by providing a stream container and loading options. This constructor empowers developers to efficiently load OTG images from streams while specifying custom loading configurations.

public OtgImage(StreamContainer streamContainer, LoadOptions loadOptions)

Parameters

streamContainer StreamContainer

The stream.

loadOptions LoadOptions

The load options.

Properties

FileFormat

This property provides access to the OTG file format, offering crucial insights into the type of data encapsulated within the image file. It serves as a pivotal reference point for software developers, enabling them to effectively handle OTG files within their applications. By utilizing this property, you can ascertain the specific format of the image file, facilitating seamless integration and manipulation of OTG files in their software systems.

public override FileFormat FileFormat { get; }

Property Value

FileFormat

PageExportingAction

This property allows for the retrieval or modification of the page exporting action associated with the image. It serves as a crucial parameter, dictating the behavior of the image when exported or processed further. Please note that setting this method will automatically release page resources after it is executed. It will be executed just before each page is saved.

public override PageExportingAction PageExportingAction { get; set; }

Property Value

PageExportingAction

The page exporting action.

Pages

Retrieves the collection of pages associated with the image, enabling software developers to access and manipulate each individual page efficiently. This property facilitates seamless iteration through the pages for various operations, enhancing the functionality and versatility of image processing applications.

public override Image[] Pages { get; }

Property Value

Image[]

The pages.

Methods

GetDefaultOptions(object[])

Retrieves the default options configured for the image, providing a convenient way to access and modify the default settings. This property ensures consistency in operations by offering predefined settings that align with common use cases, simplifying the development process.

public override ImageOptionsBase GetDefaultOptions(object[] args)

Parameters

args object[]

The arguments.

Returns

ImageOptionsBase

Default options