public class IfcImage extends Image implements IHasEntities<IIfcEntity>, IHasLayouts<IDrawingLayout<IIfcEntity>,IIfcEntity>, IDrawingLayout<IIfcEntity>
Ifc Image class
Image| Modifier and Type | Method and Description |
|---|---|
void |
add(IIfcEntity entity)
Adds entity to the page
|
void |
cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying
DataStreamSupporter.DataStreamContainer. |
int |
getDepth()
Gets the depth.
|
List<IIfcEntity> |
getEntities()
Gets all entities that exists on a drawing.
|
IfcHeader |
getHeader()
Gets the header.
|
int |
getHeight()
Gets the image height.
|
List<String> |
getLayers()
Gets list of all the layers that are present in the image
|
String |
getLayoutName()
Drawing's layout name
|
LinkedHashMap<String,IDrawingLayout<IIfcEntity>> |
getLayouts()
Collection of related pages (layouts) map
|
String[] |
getStrings()
Gets all string values from image.
|
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 |
tryRemoveEntity(IIfcEntity entityToRemove)
<inheritdoc></inheritdoc> |
canLoad, canLoad, canLoad, canLoad, canSave, getAnnotationService, getBounds, getContainer, getCustomProperties, getFileFormat, getFileFormat, getPalette, getSize, getUnitlessDefaultUnitType, getUnitType, getWatermarkGuardService, load, load, load, load, load, save, save, save, setPalettegetDataStreamContainer, save, save, save, saveclose, dispose, getDisposedpublic final IfcHeader getHeader()
Gets the header.
Value: The header.Gets the header from the image.using (IfcImage ifcImage = (IfcImage)Image.Load(fileName)) { var header = ifcImage.Header }
public final List<IIfcEntity> getEntities()
Gets all entities that exists on a drawing. Could be useful for walking through them and check its properties
Value: A set of entity instancesGets entities set from a drawing.using (IfcImage ifcImage = (IfcImage)Image.Load(fileName)) { var entities = ifcImage.Entities }
getEntities in interface IDrawingLayout<IIfcEntity>getEntities in interface IHasEntities<IIfcEntity>public final void tryRemoveEntity(IIfcEntity entityToRemove)
<inheritdoc></inheritdoc>tryRemoveEntity in interface IHasEntities<IIfcEntity>entityToRemove - Entity to removepublic final String getLayoutName()
IDrawingLayoutDrawing's layout name
getLayoutName in interface IDrawingLayout<IIfcEntity>public final LinkedHashMap<String,IDrawingLayout<IIfcEntity>> getLayouts()
Collection of related pages (layouts) map
getLayouts in interface IHasLayouts<IDrawingLayout<IIfcEntity>,IIfcEntity>public final void add(IIfcEntity entity)
IDrawingLayoutAdds entity to the page
add in interface IDrawingLayout<IIfcEntity>entity - entity to addpublic final List<String> getLayers()
Gets list of all the layers that are present in the image
Gets the layers from the image.using (IfcImage ifcImage = (IfcImage)Image.Load(fileName)) { var layers = ifcImage.Layers }
public boolean isCached()
Gets a value indicating whether object's data is cached currently and no data reading is required. At present time always returns true
Value:Gets the isCached from the image.using (IfcImage ifcImage = (IfcImage)Image.Load(fileName)) { var isCached = ifcImage.IsCached }
true if object's data is cached; otherwise, false.isCached in class DataStreamSupporterpublic void cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer.
At present time is not implemented for IFC file format
cacheData in class DataStreamSupportercom.aspose.ms.System.NotImplementedExceptionpublic int getWidth()
Gets the image width.
getWidth in interface IObjectWithBoundsgetWidth in class Imagepublic int getHeight()
Gets the image height.
getHeight in interface IObjectWithBoundsgetHeight in class Imagepublic final int getDepth()
Gets the depth.
public String[] getStrings()
Gets all string values from image.
getStrings in class ImageCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.