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, setPalettepublic 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.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 com.aspose.cad.DataStreamSupporterpublic 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 Image