public abstract class OdImage extends VectorMultipageImage implements com.aspose.internal.fileformats.opendocument.IOdImage
The open document
| Constructor and Description |
|---|
OdImage(StreamContainer streamContainer)
Initializes a new instance of the
OdImage class. |
OdImage(StreamContainer streamContainer,
LoadOptions options)
Initializes a new instance of the
OdImage class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getBitsPerPixel()
Gets the image bits per pixel count.
|
Image |
getDefaultPage()
Deprecated.
Please use getPages()[index]
|
int |
getHeight()
Gets the image height.
|
OdMetadata |
getMetadata()
Gets the metadata.
|
int |
getPageCount()
Gets the page count.
|
OdObject[] |
getRecords()
Gets the records.
|
int |
getWidth()
Gets the image width.
|
boolean |
isCached()
Gets a value indicating whether object's data is cached currently and no data reading is required.
|
void |
resize(int newWidth,
int newHeight,
ImageResizeSettings settings)
Resizes the image.
|
void |
resize(int newWidth,
int newHeight,
int resizeType)
Resizes the image.
|
void |
rotateFlip(int rotateFlipType)
Rotates, flips, or rotates and flips the image.
|
cacheData, getEmbeddedImages, getPageExportingAction, setPageExportingAction, setPalettegetHeightF, getSizeF, getWidthFcanLoad, canLoad, canLoad, canLoad, canSave, create, create, create, getBackgroundColor, getBounds, getBufferSizeHint, getContainer, getDefaultOptions, getFileFormat, getFileFormat, getFileFormat, getFittingRectangle, getFittingRectangle, getInterruptMonitor, getOriginalOptions, getPalette, getProgressEventHandler, getProgressEventHandlerInfo, getProportionalHeight, getProportionalWidth, getSize, hasBackgroundColor, isAutoAdjustPalette, isUsePalette, load, load, load, load, load, load, resize, resizeHeightProportionally, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, resizeWidthProportionally, save, save, save, save, save, save, save, save, setAutoAdjustPalette, setBackgroundColor, setBackgroundColor, setBufferSizeHint, setInterruptMonitor, setPalettegetDataStreamContainer, save, save, saveclose, dispose, getDisposedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPagespublic OdImage(StreamContainer streamContainer, LoadOptions options)
Initializes a new instance of the OdImage class.
streamContainer - The stream.options - The load options.public OdImage(StreamContainer streamContainer)
Initializes a new instance of the OdImage class.
streamContainer - The stream container.@Deprecated public Image getDefaultPage()
Gets the default page.
Value: The default page.getDefaultPage in interface IMultipageImagepublic boolean isCached()
Gets a value indicating whether object's data is cached currently and no data reading is required.
isCached in class VectorMultipageImagecom.aspose.ms.System.NotImplementedException - The not implemented this method
Value:
true if object's data is cached; otherwise, false.public int getBitsPerPixel()
Gets the image bits per pixel count.
getBitsPerPixel in class VectorMultipageImagecom.aspose.ms.System.NotImplementedException - The not implemented this property
Value:
The image bits per pixel count.public int getWidth()
Gets the image width.
Value: The image width.getWidth in interface IObjectWithBoundsgetWidth in class VectorMultipageImagepublic int getHeight()
Gets the image height.
Value: The image height.getHeight in interface IObjectWithBoundsgetHeight in class VectorMultipageImagepublic int getPageCount()
Gets the page count.
Value: The page count.getPageCount in interface IMultipageImagepublic final OdMetadata getMetadata()
Gets the metadata.
Value: The metadata.public final OdObject[] getRecords()
Gets the records.
Value: The records.getRecords in interface com.aspose.internal.fileformats.opendocument.IOdImagepublic void resize(int newWidth,
int newHeight,
ImageResizeSettings settings)
Resizes the image.
resize in class VectorMultipageImagenewWidth - The new width.newHeight - The new height.settings - The resize settings.public void resize(int newWidth,
int newHeight,
int resizeType)
Resizes the image.
resize in class VectorMultipageImagenewWidth - The new width.newHeight - The new height.resizeType - The resize type.public void rotateFlip(int rotateFlipType)
Rotates, flips, or rotates and flips the image.
rotateFlip in class VectorMultipageImagerotateFlipType - Type of the rotate flip.Copyright (c) 2008-2022 Aspose Pty Ltd. All Rights Reserved.