public class CmxImage extends VectorImage implements ICmxImage
The CMX image.
Image
Constructor and Description |
---|
CmxImage(StreamContainer streamContainer,
LoadOptions loadOptions)
Initializes a new instance of the
CmxImage class. |
Modifier and Type | Method and Description |
---|---|
void |
cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying
DataStreamSupporter.DataStreamContainer (DataStreamSupporter.getDataStreamContainer() /DataStreamSupporter.setDataStreamContainer_internalized(StreamContainer) ). |
int |
getBitsPerPixel()
Gets the image bits per pixel count.
|
CmxPage |
getCmxPage()
Gets the CMX page.
|
CmxDocument |
getDocument()
Gets the CMX document.
|
float |
getHeightF()
Gets the object height, in inches.
|
CmxImagePage[] |
getPages()
Gets the pages.
|
float |
getWidthF()
Gets the object width, in inches.
|
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.
|
void |
setPalette(IColorPalette palette,
boolean updateColors)
Sets the image palette.
|
getHeight, getSizeF, getWidth
canLoad, canLoad, canLoad, canLoad, canSave, create, getBackgroundColor, getBounds, getContainer, getDefaultOptions, getFileFormat, 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, setInterruptMonitor, setPalette
getDataStreamContainer, save, save, save, save
close, dispose, getDisposed
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSizeF
public CmxImage(StreamContainer streamContainer, LoadOptions loadOptions)
Initializes a new instance of the CmxImage
class.
streamContainer
- The stream container.loadOptions
- The load options.public int getBitsPerPixel()
Gets the image bits per pixel count.
getBitsPerPixel
in class Image
public boolean isCached()
Gets a value indicating whether object's data is cached currently and no data reading is required.
isCached
in class DataStreamSupporter
true
if object's data is cached; otherwise, false
.public float getWidthF()
Gets the object width, in inches.
getWidthF
in interface IObjectWithSizeF
getWidthF
in class VectorImage
public float getHeightF()
Gets the object height, in inches.
getHeightF
in interface IObjectWithSizeF
getHeightF
in class VectorImage
public final CmxDocument getDocument()
Gets the CMX document.
public final CmxPage getCmxPage()
Gets the CMX page.
getCmxPage
in interface ICmxImage
public final CmxImagePage[] getPages()
Gets the pages.
public void cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer
(DataStreamSupporter.getDataStreamContainer()
/DataStreamSupporter.setDataStreamContainer_internalized(StreamContainer)
).
cacheData
in class DataStreamSupporter
public void resize(int newWidth, int newHeight, int resizeType)
Resizes the image.
public void resize(int newWidth, int newHeight, ImageResizeSettings settings)
Resizes the image.
public void rotateFlip(int rotateFlipType)
Rotates, flips, or rotates and flips the image.
rotateFlip
in class Image
rotateFlipType
- Type of the rotate flip.public void setPalette(IColorPalette palette, boolean updateColors)
Sets the image palette.
setPalette
in class Image
palette
- The palette to set.updateColors
- 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.Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.