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. |
| getFileFormat() | Gets a value of file format |
| getCdrDocument() | Gets the CDR document. |
| getDefaultOptions(Object[] args) | Gets the default options. |
| cacheData() | Caches the data and ensures no additional data loading will be performed from the underlying P:com.aspose.imaging.dataStreamSupporter.dataStreamContainer. |
| 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.
getFileFormat()
public long getFileFormat()
Gets a value of file format
Returns: long - a value of file format
getCdrDocument()
public final CdrDocument getCdrDocument()
Gets the CDR document.
Value: The CDR document.
Returns: CdrDocument - the CDR document.
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
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.
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. |