public class OdgImage extends OdImage
The Open Document Graphic
<inheritdoc></inheritdoc>
This example loads a multi-page ODG image.
String dir = "c:\\temp\\"; // Using Aspose.Imaging.Image.Load is a unified way to load image. com.aspose.imaging.fileformats.opendocument.MultiPageImage image = (com.aspose.imaging.fileformats.opendocument.MultiPageImage) com.aspose.imaging.Image.load(dir + "sample.odg"); try { // Cast to OdgImage com.aspose.imaging.fileformats.opendocument.OdgImage odgImage = (com.aspose.imaging.fileformats.opendocument.OdgImage) image; // Get all pages com.aspose.imaging.Image[] pages = odgImage.getPages(); // Do some image processing } finally { image.dispose(); }
Constructor and Description |
---|
OdgImage(InputStream stream)
Initializes a new instance of the
OdgImage class. |
Modifier and Type | Method and Description |
---|---|
ImageOptionsBase |
getDefaultOptions(Object[] args)
Gets the default options.
|
long |
getFileFormat()
Gets a value of file format
|
Image[] |
getPages()
Gets the pages.
|
getBitsPerPixel, getHeight, getMetadata, getPageCount, getRecords, getWidth, isCached
cacheData, resize, resize, rotateFlip, setPalette
canLoad, canLoad, canLoad, canLoad, canSave, create, getBackgroundColor, getBounds, getBufferSizeHint, getContainer, getFileFormat, getFileFormat, getFittingRectangle, getFittingRectangle, getInterruptMonitor, getOriginalOptions, getPalette, getProportionalHeight, getProportionalWidth, getSize, hasBackgroundColor, isAutoAdjustPalette, load, load, load, load, load, load, resize, resizeHeightProportionally, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, resizeWidthProportionally, save, save, save, save, save, save, save, setAutoAdjustPalette, setBackgroundColor, setBackgroundColor, setBufferSizeHint, setInterruptMonitor, setPalette
getDataStreamContainer, save, save, save, save
close, dispose, getDisposed
public OdgImage(InputStream stream)
Initializes a new instance of the OdgImage
class.
stream
- The stream.public long getFileFormat()
Gets a value of file format
getFileFormat
in class Image
public Image[] getPages()
Gets the pages.
Value: The pages.getPages
in class MultiPageImage
public ImageOptionsBase getDefaultOptions(Object[] args)
Gets the default options.
getDefaultOptions
in class Image
args
- The arguments.Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.