OdImage

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

All Implemented Interfaces: com.aspose.internal.fileformats.opendocument.IOdImage

public abstract class OdImage extends VectorMultipageImage implements IOdImage

The open document

Constructors

ConstructorDescription
OdImage(StreamContainer streamContainer, LoadOptions options)Initializes a new instance of the OdImage class.
OdImage(StreamContainer streamContainer)Initializes a new instance of the OdImage class.

Methods

MethodDescription
getDefaultPage()Gets the default page.
isCached()Gets a value indicating whether object’s data is cached currently and no data reading is required.
getBitsPerPixel()Gets the image bits per pixel count.
getWidth()Gets the image width.
getHeight()Gets the image height.
getPageCount()Gets the page count.
getMetadata()Gets the metadata.
getRecords()Gets the records.
resize(int newWidth, int newHeight, ImageResizeSettings settings)Resizes the image.
resize(int newWidth, int newHeight, int resizeType)Resizes the image.
rotateFlip(int rotateFlipType)Rotates, flips, or rotates and flips the image.

OdImage(StreamContainer streamContainer, LoadOptions options)

public OdImage(StreamContainer streamContainer, LoadOptions options)

Initializes a new instance of the OdImage class.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream.
optionsLoadOptionsThe load options.

OdImage(StreamContainer streamContainer)

public OdImage(StreamContainer streamContainer)

Initializes a new instance of the OdImage class.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.

getDefaultPage()

public Image getDefaultPage()

Gets the default page.

Value: The default page.

Returns: Image - the default page.

isCached()

public boolean isCached()

Gets a value indicating whether object’s data is cached currently and no data reading is required.

Returns: boolean - a value indicating whether object’s data is cached currently and no data reading is required.

getBitsPerPixel()

public int getBitsPerPixel()

Gets the image bits per pixel count.

Returns: int - the image bits per pixel count.

getWidth()

public int getWidth()

Gets the image width.

Value: The image width.

Returns: int - the image width.

getHeight()

public int getHeight()

Gets the image height.

Value: The image height.

Returns: int - the image height.

getPageCount()

public int getPageCount()

Gets the page count.

Value: The page count.

Returns: int - the page count.

getMetadata()

public final OdMetadata getMetadata()

Gets the metadata.

Value: The metadata.

Returns: OdMetadata - the metadata.

getRecords()

public final OdObject[] getRecords()

Gets the records.

Value: The records.

Returns: com.aspose.imaging.fileformats.opendocument.OdObject[] - the records.

resize(int newWidth, int newHeight, ImageResizeSettings settings)

public void resize(int newWidth, int newHeight, ImageResizeSettings settings)

Resizes the image.

Parameters:

ParameterTypeDescription
newWidthintThe new width.
newHeightintThe new height.
settingsImageResizeSettingsThe resize settings.

resize(int newWidth, int newHeight, int resizeType)

public void resize(int newWidth, int newHeight, int resizeType)

Resizes the image.

Parameters:

ParameterTypeDescription
newWidthintThe new width.
newHeightintThe new height.
resizeTypeintThe resize type.

rotateFlip(int rotateFlipType)

public void rotateFlip(int rotateFlipType)

Rotates, flips, or rotates and flips the image.

Parameters:

ParameterTypeDescription
rotateFlipTypeintType of the rotate flip.