PictureReaderExtensions.Read(IPictureReader, Stream, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads a picture from a stream.
public static Microsoft.Maui.Graphics.IPicture Read(this Microsoft.Maui.Graphics.IPictureReader target, System.IO.Stream stream, string hash = default);
static member Read : Microsoft.Maui.Graphics.IPictureReader * System.IO.Stream * string -> Microsoft.Maui.Graphics.IPicture
<Extension()>
Public Function Read (target As IPictureReader, stream As Stream, Optional hash As String = Nothing) As IPicture
Parameters
- target
- IPictureReader
The picture reader.
- stream
- Stream
The stream containing the picture data.
- hash
- String
Optional hash value for the picture data.
Returns
An IPicture object read from the stream.
Exceptions
Thrown when target
or stream
is null.