Click or drag to resize

MemoryStreamImageProxyFromStream Method

Creates a MemoryStreamImageProxy from a stream. A file name must be provided in order to deduce the kind of stream (.png for .png stream, .jpg for jpg stream and so on).

Namespace: Altaxo.Drawing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static MemoryStreamImageProxy FromStream(
	Stream istr,
	string name
)

Parameters

istr  Stream
The image stream to copy from.
name  String
The name. The kind of image is deduced from the extension of this name.

Return Value

MemoryStreamImageProxy
A memory stream image proxy holding the image.
Exceptions
ExceptionCondition
ArgumentNullException istr or name - Name must be provided in order to deduce the file extension
See Also