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.
| Constructor and Description |
|---|
OtgImage(StreamContainer streamContainer)
Create a new object of the
OtgImage class by supplying a stream
container. |
OtgImage(StreamContainer streamContainer,
LoadOptions loadOptions)
Initialize a new
OtgImage object by providing a stream container
and loading options. |
| Modifier and Type | Method and Description |
|---|---|
long |
getFileFormat()
This property provides access to the OTG file format, offering crucial insights
into the type of data encapsulated within the image file.
|
Image[] |
getPages()
Retrieves the collection of pages associated with the image, enabling software
developers to access and manipulate each individual page efficiently.
|
getBitsPerPixel, getDefaultPage, getOdMetadata, getPageCount, getRecords, isCachedcacheData, crop, getEmbeddedImages, getHeight, getMetadata, getPageExportingAction, getWidth, removeBackground, removeBackground, resize, resize, rotate, rotateFlip, setPageExportingAction, setPalettegetDefaultOptions, getHeightF, getSizeF, getWidthFcanLoad, canLoad, canLoad, canLoad, canSave, create, create, create, create, create, create, create, crop, getBackgroundColor, getBounds, getBufferSizeHint, getContainer, getExifData, getFileFormat, getFileFormat, getFittingRectangle, getFittingRectangle, getInterruptMonitor, getIProgressEventHandler, getOriginalOptions, getPalette, getProgressEventHandlerInfo, getProportionalHeight, getProportionalWidth, getSerializedStream, getSize, getXmpData, hasBackgroundColor, isAutoAdjustPalette, isUsePalette, load, load, load, load, load, load, removeMetadata, resize, resizeHeightProportionally, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, resizeWidthProportionally, save, save, save, save, save, save, save, save, setAutoAdjustPalette, setBackgroundColor, setBackgroundColor, setBufferSizeHint, setExifData, setInterruptMonitor, setPalette, setXmpData, trySetMetadatagetDataStreamContainer, save, save, saveclose, dispose, getDisposedpublic OtgImage(StreamContainer streamContainer, LoadOptions 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.
streamContainer - The stream.loadOptions - The load options.public OtgImage(StreamContainer 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.
streamContainer - The stream container.public long getFileFormat()
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.
getFileFormat in class ImageFileFormatpublic Image[] getPages()
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.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.