public class CadImage extends Image
Cad image class
Modifier and Type | Field and Description |
---|---|
String |
FilePath_internalized
File path.
|
Constructor and Description |
---|
CadImage()
Initializes a new instance of the
CadImage 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 . |
int |
getBitsPerPixel()
Gets the image bits per pixel count.
|
CadBlockDictionary |
getBlockEntities()
Gets or sets the block entities.
|
List<CadBlockTableObject> |
getBlocksTables()
Gets or sets the blocks tables.
|
int |
getCadImageType_internalized()
Gets or sets type of image.
|
CadDimensionDictionary |
getDimensionStyles()
Gets or sets the dimension styles.
|
CadBaseEntity[] |
getEntities()
Gets or sets the entities.
|
CadHeader |
getHeader()
Gets or sets the header.
|
int |
getHeight()
Gets the image height.
|
CadLayersDictionary |
getLayers()
Gets or sets the layers.
|
CadLayoutDictionary |
getLayouts()
Gets the layouts.
|
CadLineTypesDictionary |
getLineTypes()
Gets or sets the dimension styles.
|
PointF |
getMaxPoint()
Gets the max point.
|
PointF |
getMinPoint()
Gets the min point.
|
CadBaseObject[] |
getObjects()
Gets or sets the objects.
|
CadStylesDictionary |
getStyles()
Gets or sets the styles.
|
CadVportList |
getViewPorts()
Gets or sets the view ports.
|
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.
|
void |
setBlockEntities(CadBlockDictionary value)
Gets or sets the block entities.
|
void |
setBlocksTables(List<CadBlockTableObject> value)
Gets or sets the blocks tables.
|
void |
setCadImageType_internalized(int value)
Gets or sets type of image.
|
void |
setDimensionStyles(CadDimensionDictionary value)
Gets or sets the dimension styles.
|
void |
setEntities(CadBaseEntity[] value)
Gets or sets the entities.
|
void |
setHeader(CadHeader value)
Gets or sets the header.
|
void |
setLayers(CadLayersDictionary value)
Gets or sets the layers.
|
void |
setLineTypes(CadLineTypesDictionary value)
Gets or sets the dimension styles.
|
void |
setObjects(CadBaseObject[] value)
Gets or sets the objects.
|
void |
setPalette(IColorPalette palette,
boolean updateColors)
Sets the image palette.
|
void |
setSize_internalized()
Gets or sets size of an image
|
void |
setStyles(CadStylesDictionary value)
Gets or sets the styles.
|
void |
setViewPorts(CadVportList value)
Gets or sets the view ports.
|
canLoad, canLoad, canLoad, canLoad, canLoadInternal_internalized, canLoadInternal_internalized, canSave, create, getBackgroundColor, getBounds, getContainer, getFileFormat, getFileFormat, getFileFormatInternal_internalized, getFittingRectangle, getFittingRectangle, getPalette, getProportionalHeight, getProportionalWidth, getSize, getVentureLicense_internalized, hasBackgroundColor, load, load, load, load, loadInternal_internalized, loadInternal_internalized, resize, resizeHeightProportionally, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, resizeWidthProportionally, save_internalized, save, save, save, save, save, setBackgroundColor, setBackgroundColor, setContainer_internalized, setPalette, setVentureLicense_internalized
getDataStreamContainer, save_internalized, save, save, save, setDataStreamContainer
close, dispose, getDisposed
public String FilePath_internalized
File path.
public int getCadImageType_internalized()
Gets or sets type of image.
public void setCadImageType_internalized(int value)
Gets or sets type of image.
public CadLineTypesDictionary getLineTypes()
Gets or sets the dimension styles.
Value: The dimension styles.public void setLineTypes(CadLineTypesDictionary value)
Gets or sets the dimension styles.
Value: The dimension styles.public int getBitsPerPixel()
Gets the image bits per pixel count.
Value: The image bits per pixel count.getBitsPerPixel
in class Image
public CadBlockDictionary getBlockEntities()
Gets or sets the block entities.
Value: The block entities.public void setBlockEntities(CadBlockDictionary value)
Gets or sets the block entities.
Value: The block entities.public List<CadBlockTableObject> getBlocksTables()
Gets or sets the blocks tables.
Value: The blocks tables.public void setBlocksTables(List<CadBlockTableObject> value)
Gets or sets the blocks tables.
Value: The blocks tables.public CadDimensionDictionary getDimensionStyles()
Gets or sets the dimension styles.
Value: The dimension styles.public void setDimensionStyles(CadDimensionDictionary value)
Gets or sets the dimension styles.
Value: The dimension styles.public CadBaseEntity[] getEntities()
Gets or sets the entities.
Value: The entities.public void setEntities(CadBaseEntity[] value)
Gets or sets the entities.
Value: The entities.public CadBaseObject[] getObjects()
Gets or sets the objects.
CadException
- Invalid value for Objects
Value:
The objects.public void setObjects(CadBaseObject[] value)
Gets or sets the objects.
CadException
- Invalid value for Objects
Value:
The objects.public int getHeight()
Gets the image height.
Value: The image height.getHeight
in interface IObjectWithBounds
getHeight
in class Image
public final boolean isCached()
Gets a value indicating whether object's data is cached currently and no data reading is required.
Value:true
if object's data is cached; otherwise, false
.isCached
in class DataStreamSupporter
public CadLayersDictionary getLayers()
Gets or sets the layers.
Value: The layers.public void setLayers(CadLayersDictionary value)
Gets or sets the layers.
Value: The layers.public PointF getMaxPoint()
Gets the max point.
public PointF getMinPoint()
Gets the min point.
public CadStylesDictionary getStyles()
Gets or sets the styles.
public void setStyles(CadStylesDictionary value)
Gets or sets the styles.
public int getWidth()
Gets the image width.
Value: The image width.getWidth
in interface IObjectWithBounds
getWidth
in class Image
public CadLayoutDictionary getLayouts()
Gets the layouts.
Value: The layouts.public CadHeader getHeader()
Gets or sets the header.
Value: The header.public void setHeader(CadHeader value)
Gets or sets the header.
Value: The header.public CadVportList getViewPorts()
Gets or sets the view ports.
Value: The view ports.public void setViewPorts(CadVportList value)
Gets or sets the view ports.
Value: The view ports.public final void cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer
.
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.public void setSize_internalized()
Gets or sets size of an image
Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.