public class StpImage extends Image
STP image class.
| Constructor and Description |
|---|
StpImage() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(StpImage imageToAppend)
Appends the content of another STP image.
|
void |
cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying
P:Aspose.CAD.DataStreamSupporter.DataStreamContainer. |
void |
copyHeaderValues(StpImage sourceImage) |
String |
getAuthor() |
String |
getAuthorization() |
StepCollections |
getCollections()
Useful collections for simplification of iterating through STP data.
|
int |
getDepth()
Gets the image depth.
|
String |
getDescription() |
int |
getHeight()
Gets the image height.
|
String |
getImplementationLevel() |
List<StepRepresentationItem> |
getItems() |
String |
getLogicalModelsTree()
Outputs LogicalModels tree structure to string.
|
String |
getName() |
String |
getOrganization() |
String |
getOriginatingSystem() |
String |
getPreprocessorVersion() |
Set<Integer> |
getSchemas() |
Date |
getTimestamp() |
com.aspose.ms.System.Collections.Generic.IGenericCollection<StepRepresentationItem> |
getTopLevelItems()
Gets all top-level items (i.e., not referenced by any other item) in the file.
|
List<String> |
getUnsupportedSchemas() |
int |
getWidth()
Gets the image width.
|
boolean |
isCached()
The image facet objects.
|
void |
setAuthor(String value) |
void |
setAuthorization(String value) |
void |
setDescription(String value) |
void |
setImplementationLevel(String value) |
void |
setName(String value) |
void |
setOrganization(String value) |
void |
setOriginatingSystem(String value) |
void |
setPreprocessorVersion(String value) |
void |
setTimestamp(Date value) |
void |
updateSize()
Updates size of an image.
|
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 getDescription()
public final void setDescription(String value)
public final String getImplementationLevel()
public final void setImplementationLevel(String value)
public final String getName()
public final void setName(String value)
public final Date getTimestamp()
public final void setTimestamp(Date value)
public final String getAuthor()
public final void setAuthor(String value)
public final String getOrganization()
public final void setOrganization(String value)
public final String getPreprocessorVersion()
public final void setPreprocessorVersion(String value)
public final String getOriginatingSystem()
public final void setOriginatingSystem(String value)
public final String getAuthorization()
public final void setAuthorization(String value)
public final List<StepRepresentationItem> getItems()
public final StepCollections getCollections()
Useful collections for simplification of iterating through STP data.
public final void copyHeaderValues(StpImage sourceImage)
public final String getLogicalModelsTree()
Outputs LogicalModels tree structure to string.
public final void append(StpImage imageToAppend)
Appends the content of another STP image. This feature allows you to merge the content of a different STP images. In the example below, models are loaded from files and then merged into a single image.The resulting STP image will contain all the primitives from each of the loaded STP files.
public final com.aspose.ms.System.Collections.Generic.IGenericCollection<StepRepresentationItem> getTopLevelItems()
Gets all top-level items (i.e., not referenced by any other item) in the file.
public boolean isCached()
The image facet objects.
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 DataStreamSupporterpublic final void updateSize()
Updates size of an image. MinPoint, MaxPoint, Width, Height and Depth properties of image are updated.
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 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 ImageCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.