StreamSource Class

Summary: Represents a stream source.

Module: aspose.psd.sources

Full Name: aspose.psd.sources.StreamSource

Inheritance: Source

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
StreamSource(stream)Initializes a new instance of the StreamSource class.
StreamSource(stream, dispose_stream)Initializes a new instance of the StreamSource class.

Properties

NameTypeAccessDescription
dispose_streamboolrGets a value indicating whether stream should be disposed whenever container gets disposed.
stream_io.BufferedRandomrGets the stream.

Methods

NameDescription
get_stream_container()Gets the stream container.

Constructor: StreamSource(stream)

 StreamSource(stream) 

Initializes a new instance of the StreamSource class.

Parameters:

ParameterTypeDescription
stream_io.BufferedRandomThe stream to open.

Constructor: StreamSource(stream, dispose_stream)

 StreamSource(stream, dispose_stream) 

Initializes a new instance of the StreamSource class.

Parameters:

ParameterTypeDescription
stream_io.BufferedRandomThe stream to open.
dispose_streamboolif set to true the stream will be disposed.

Method: get_stream_container()

 get_stream_container() 

Gets the stream container.

Returns

TypeDescription
StreamContainerthe stream container.