BitmapFactory.DecodeFileAsync 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.
Overloads
| Name | Description |
|---|---|
| DecodeFileAsync(String) |
Runs image-file decoding as a task. |
| DecodeFileAsync(String, BitmapFactory+Options) |
Runs image-file decoding with the supplied options as a task. |
DecodeFileAsync(String)
Runs image-file decoding as a task.
public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeFileAsync(string? pathName);
static member DecodeFileAsync : string -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>
Parameters
- pathName
- String
The path of the encoded image file.
Returns
A task that yields the decoded bitmap, or null if the file cannot be opened or decoded.
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.
Applies to
DecodeFileAsync(String, BitmapFactory+Options)
Runs image-file decoding with the supplied options as a task.
public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeFileAsync(string? pathName, Android.Graphics.BitmapFactory.Options? opts);
static member DecodeFileAsync : string * Android.Graphics.BitmapFactory.Options -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>
Parameters
- pathName
- String
The path of the encoded image file.
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.