Share via


PictureReaderExtensions.Read(IPictureReader, Stream, String) Method

Definition

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.

Applies to