BitmapFactory.DecodeResourceStreamAsync 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.
Runs resource-stream image decoding with density metadata as a task.
public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeResourceStreamAsync(Android.Content.Res.Resources? res, Android.Util.TypedValue? value, System.IO.Stream? is, Android.Graphics.Rect? pad, Android.Graphics.BitmapFactory.Options? opts);
static member DecodeResourceStreamAsync : Android.Content.Res.Resources * Android.Util.TypedValue * System.IO.Stream * Android.Graphics.Rect * Android.Graphics.BitmapFactory.Options -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>
Parameters
- res
- Resources
The optional resource table supplying the target display density.
- value
- TypedValue
Optional resource metadata supplying the image's source density.
- is
- Stream
The stream containing encoded image bytes.
- pad
- Rect
An optional rectangle to receive image padding.
Decode settings and result fields, or null for default settings.
Returns
A task that yields the decoded bitmap, or null when decoding produces no bitmap, including a bounds-only request.
Remarks
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.