Create a new ImageShape from a stream of binary data.

Namespace: TallComponents.PDF.Layout.Shapes
Assembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.66.0

Syntax

C#
public ImageShape(
	Stream stream,
	int frameIndex,
	bool disposeStream
)
Visual Basic
Public Sub New ( _
	stream As Stream, _
	frameIndex As Integer, _
	disposeStream As Boolean _
)

Parameters

stream
Type: System.IO..::..Stream
The stream containing the binairy image data.
frameIndex
Type: System..::..Int32
0-based frame index.
disposeStream
Type: System..::..Boolean
The stream will be disposed by this component.

Remarks

When setting disposeStream to true, the stream is disposed when this Image class is released from memory. Note that if this instance of the stream is used multiple times an error will be thrown if the stream is used after this Image class is removed from memory.

See Also