public class StlImage extends Image implements IHasEntities<TriangularFacet>
STL image class.
| Constructor and Description |
|---|
StlImage() |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying
P:Aspose.CAD.DataStreamSupporter.DataStreamContainer. |
int |
getDepth()
Gets the image depth.
|
List<TriangularFacet> |
getEntities()
Gets or sets the image facet objects.
|
String |
getHeader()
Gets or sets the image header.
|
int |
getHeight()
Gets the image height.
|
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(TriangularFacet entityToRemove)
Removes entity from drawing if present
|
canLoad, canLoad, canLoad, canLoad, canSave, getAnnotationService, getBounds, getContainer, getCustomProperties, getFileFormat, getFileFormat, getPalette, getSize, getStrings, getUnitlessDefaultUnitType, getUnitType, getWatermarkGuardService, load, load, load, load, load, save, save, save, setPalettegetDataStreamContainer, save, save, save, saveclose, dispose, getDisposedpublic final String getHeader()
Gets or sets the image header.
public final List<TriangularFacet> getEntities()
Gets or sets the image facet objects.
getEntities in interface IHasEntities<TriangularFacet>public final void tryRemoveEntity(TriangularFacet entityToRemove)
IHasEntitiesRemoves entity from drawing if present
tryRemoveEntity in interface IHasEntities<TriangularFacet>entityToRemove - Entity to removepublic int getWidth()
Gets the image width.
Value: The image width.Prints drawing's widthImage drawing = ... System.Console.WriteLine("Drawing's width: " + drawing.Width);
getWidth in interface IObjectWithBoundsgetWidth in class Imagepublic int getHeight()
Gets the image height.
Value: The image height.Prints drawing's heightImage drawing = ... System.Console.WriteLine("Drawing's height: " + drawing.Height);
getHeight in interface IObjectWithBoundsgetHeight in class Imagepublic int getDepth()
Gets the image depth.
Value: The image depth.Prints drawing's depthImage drawing = ... System.Console.WriteLine("Drawing's depth: " + drawing.Depth);
public 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 DataStreamSupporterpublic void cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying P:Aspose.CAD.DataStreamSupporter.DataStreamContainer.
cacheData in class DataStreamSupporterCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.