public class StlImage extends Image
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 . |
List<TriangularFacet> |
getFacets()
Gets or sets the image facet objects.
|
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 |
setFacets(List<TriangularFacet> value)
Gets or sets the image facet objects.
|
canLoad, canLoad, canLoad, canLoad, canSave, getBackgroundColor, getBounds, getContainer, getFileFormat, getFileFormat, getPalette, getSize, getStrings, getUnitlessDefaultUnitType, getUnitType, hasBackgroundColor, load, load, load, load, save, save, save, setBackgroundColor, setBackgroundColor, setPalette
public final List<TriangularFacet> getFacets()
Gets or sets the image facet objects.
public final void setFacets(List<TriangularFacet> value)
Gets or sets the image facet objects.
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 com.aspose.cad.DataStreamSupporter
public 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 com.aspose.cad.DataStreamSupporter
public 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 IObjectWithBounds
getWidth
in class Image
public 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 IObjectWithBounds
getHeight
in class Image