Picture.CreateFromStream(Stream) Method

Definition

Caution

deprecated

Create a new picture (already recorded) from the data in the stream.

[Android.Runtime.Register("createFromStream", "(Ljava/io/InputStream;)Landroid/graphics/Picture;", "")]
[System.Obsolete("deprecated")]
public static Android.Graphics.Picture? CreateFromStream (System.IO.Stream? stream);
[<Android.Runtime.Register("createFromStream", "(Ljava/io/InputStream;)Landroid/graphics/Picture;", "")>]
[<System.Obsolete("deprecated")>]
static member CreateFromStream : System.IO.Stream -> Android.Graphics.Picture

Parameters

stream
Stream

Returns

Attributes

Remarks

Create a new picture (already recorded) from the data in the stream. This data was generated by a previous call to writeToStream(). Pictures that have been persisted across device restarts are not guaranteed to decode properly and are highly discouraged.

This member is deprecated. The recommended alternative is to not use writeToStream and instead draw the picture into a Bitmap from which you can persist it as raw or compressed pixels.

Java documentation for android.graphics.Picture.createFromStream(java.io.InputStream).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also