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.DrawingAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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
MemoryStreamImageProxyA memory stream image proxy holding the image.
Exceptions Exception | Condition |
---|
ArgumentNullException |
istr
or
name - Name must be provided in order to deduce the file extension
|
See Also