StpImage class

StpImage class

STP image class.

Inheritance: StpImageImageDataStreamSupporterDisposableObject

The StpImage type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the Image class.

Properties

PropertyDescription
disposedGets a value indicating whether this instance is disposed.
data_stream_containerGets the object’s data stream.
is_cachedGets a value indicating whether object’s data is cached currently and no data reading is required.
boundsGets the image bounds.
containerGets the Image container.
heightGets the image height.
depthGets the image depth.
paletteGets or sets the color palette.
sizeGets the image size.
widthGets the image width.
unit_typeGets current unit type.
unitless_default_unit_typeAssumed unit type when UnitType is set to Unitless
annotation_serviceGets the annotation service.
watermark_guard_service
description
implementation_level
name
timestamp
author
organization
preprocessor_version
originating_system
authorization
schemas
unsupported_schemas
items
collectionsUseful collections for simplification of iterating through STP data.

Methods

MethodDescription
saveSaves the image data to the underlying stream.
saveSaves the object’s data to the specified file location in the specified file format according to save options.
saveSaves the image’s data to the specified stream in the specified file format according to save options.
saveSaves the object’s data to the specified stream.
saveSaves the object’s data to the specified file location.
saveSaves the object’s data to the specified file location.
can_loadDetermines whether image can be loaded from the specified file path.
can_loadDetermines whether an image can be loaded from the specified file path and optionally using the specified open options
can_loadDetermines whether image can be loaded from the specified stream.
can_loadDetermines whether image can be loaded from the specified stream and optionally using the specified load_options.
get_file_formatGets the file format.
get_file_formatGets the file format.
loadLoads a new image from the specified file.
loadLoads a new image from the specified file.
loadLoads a new image from the specified stream.
loadLoads a new image from the specified stream.
loadLoads a new image from the specified stream.
cache_dataCaches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.data_stream_container.
get_stringsGets all string values from image.
can_saveDetermines whether image can be saved to the specified file format represented by the passed save options.
get_top_level_itemsGets all top-level items (i.e., not referenced by any other item) in the file.

See Also