OtgImage

Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject, com.aspose.imaging.DataStreamSupporter, com.aspose.imaging.Image, com.aspose.imaging.VectorImage, com.aspose.imaging.VectorMultipageImage, com.aspose.imaging.fileformats.opendocument.OdImage

public class OtgImage extends OdImage

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.

Constructors

ConstructorDescription
OtgImage(StreamContainer streamContainer, LoadOptions loadOptions)Initializes a new instance of the OtgImage class.
OtgImage(StreamContainer streamContainer)Initializes a new instance of the OtgImage class.

Methods

MethodDescription
getFileFormat()Gets a value of file format
getPageExportingAction()Gets the page exporting action.
setPageExportingAction(PageExportingAction value)Sets the page exporting action.
getPages()Gets the pages.
getDefaultOptions(Object[] args)Gets the default options.

OtgImage(StreamContainer streamContainer, LoadOptions loadOptions)

public OtgImage(StreamContainer streamContainer, LoadOptions loadOptions)

Initializes a new instance of the OtgImage class.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream.
loadOptionsLoadOptionsThe load options.

OtgImage(StreamContainer streamContainer)

public OtgImage(StreamContainer streamContainer)

Initializes a new instance of the OtgImage class.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.

getFileFormat()

public long getFileFormat()

Gets a value of file format

Returns: long - a value of file format

getPageExportingAction()

public PageExportingAction getPageExportingAction()

Gets the page exporting action. 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.

Value: The page exporting action.

Returns: PageExportingAction - the page exporting action.

setPageExportingAction(PageExportingAction value)

public void setPageExportingAction(PageExportingAction value)

Sets the page exporting action. 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.

Value: The page exporting action.

Parameters:

ParameterTypeDescription
valuePageExportingActionthe page exporting action.

getPages()

public Image[] getPages()

Gets the pages.

Value: The pages.

Returns: com.aspose.imaging.Image[] - the pages.

getDefaultOptions(Object[] args)

public ImageOptionsBase getDefaultOptions(Object[] args)

Gets the default options.

Parameters:

ParameterTypeDescription
argsjava.lang.Object[]The arguments.

Returns: ImageOptionsBase - Default options