CdrImagePage
Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject, com.aspose.imaging.DataStreamSupporter, com.aspose.imaging.Image, com.aspose.imaging.VectorImage
All Implemented Interfaces: com.aspose.imaging.fileformats.cdr.ICdrImage
public class CdrImagePage extends VectorImage implements ICdrImage
The Cdr image page
Methods
Method | Description |
---|---|
getParentImage() | Gets the parent image. |
getPageNumber() | Gets the page number. |
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. |
getFileFormat() | Gets a value of file format |
getDefaultOptions(Object[] args) | Gets the default options. |
getCdrDocument() | Gets the CDR document. |
cacheData() | Caches the data and ensures no additional data loading will be performed from the underlying P:com.aspose.imaging.dataStreamSupporter.dataStreamContainer . |
resize(int newWidth, int newHeight, int resizeType) | Resizes the image. |
resize(int newWidth, int newHeight, ImageResizeSettings settings) | Resizes the image. |
rotateFlip(int rotateFlipType) | Rotates, flips, or rotates and flips the image. |
setPalette(IColorPalette palette, boolean updateColors) | Sets the image palette. |
getParentImage()
public final CdrImage getParentImage()
Gets the parent image.
Value: The parent image.
Returns: CdrImage - the parent image.
getPageNumber()
public final int getPageNumber()
Gets the page number.
Value: The page number.
Returns: int - the page number.
isCached()
public boolean isCached()
Gets a value indicating whether object’s data is cached currently and no data reading is required.
Returns: boolean
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.
Returns: int - the image width.
getHeight()
public int getHeight()
Gets the image height.
Returns: int - the image height.
getFileFormat()
public long getFileFormat()
Gets a value of file format
Returns: long - a value of file format
getDefaultOptions(Object[] args)
public ImageOptionsBase getDefaultOptions(Object[] args)
Gets the default options.
Parameters:
Parameter | Type | Description |
---|---|---|
args | java.lang.Object[] | The arguments. |
Returns: ImageOptionsBase - Default options
getCdrDocument()
public final CdrDocument getCdrDocument()
Gets the CDR document.
Returns: CdrDocument - the CDR document.
cacheData()
public synchronized void cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying P:com.aspose.imaging.dataStreamSupporter.dataStreamContainer
.
resize(int newWidth, int newHeight, int resizeType)
public void resize(int newWidth, int newHeight, int resizeType)
Resizes the image.
Parameters:
Parameter | Type | Description |
---|---|---|
newWidth | int | The new width. |
newHeight | int | The new height. |
resizeType | int | The resize type. |
resize(int newWidth, int newHeight, ImageResizeSettings settings)
public void resize(int newWidth, int newHeight, ImageResizeSettings settings)
Resizes the image.
Parameters:
Parameter | Type | Description |
---|---|---|
newWidth | int | The new width. |
newHeight | int | The new height. |
settings | ImageResizeSettings | The resize settings. |
rotateFlip(int rotateFlipType)
public void rotateFlip(int rotateFlipType)
Rotates, flips, or rotates and flips the image.
Parameters:
Parameter | Type | Description |
---|---|---|
rotateFlipType | int | Type of rotation and flipping. |
setPalette(IColorPalette palette, boolean updateColors)
public void setPalette(IColorPalette palette, boolean updateColors)
Sets the image palette.
Parameters:
Parameter | Type | Description |
---|---|---|
palette | IColorPalette | The palette to set. |
updateColors | boolean | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. |