Table of Contents

Class StreamSource

Namespace
Aspose.Imaging.Sources
Assembly
Aspose.Imaging.dll

Represents a stream source.

public sealed class StreamSource : Source
Inheritance
StreamSource
Inherited Members

Constructors

StreamSource()

Initializes a new instance of the StreamSource class.

public StreamSource()

StreamSource(Stream)

Initializes a new instance of the StreamSource class.

public StreamSource(Stream stream)

Parameters

stream Stream

The stream to open.

StreamSource(Stream, bool)

Initializes a new instance of the StreamSource class.

public StreamSource(Stream stream, bool disposeStream)

Parameters

stream Stream

The stream to open.

disposeStream bool

if set to true the stream will be disposed.

Properties

DisposeStream

Gets a value indicating whether stream should be disposed whenever container gets disposed.

public bool DisposeStream { get; }

Property Value

bool

true if stream should be disposed; otherwise, false.

Stream

Gets the stream.

public Stream Stream { get; }

Property Value

Stream

The source stream.

Methods

GetStreamContainer()

Gets the stream container.

public override StreamContainer GetStreamContainer()

Returns

StreamContainer

the stream container.

Remarks

Use with caution. You will need to dispose the stream container after retrieval.