ImageDecoder.DecodeBitmap 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 |
|---|---|
| DecodeBitmap(ImageDecoder+Source) |
See |
| DecodeBitmap(ImageDecoder+Source, ImageDecoder+IOnHeaderDecodedListener) |
See |
DecodeBitmap(ImageDecoder+Source)
See #decodeBitmap(Source, OnHeaderDecodedListener).
[Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;)Landroid/graphics/Bitmap;", "", ApiSince=28)]
public static Android.Graphics.Bitmap DecodeBitmap(Android.Graphics.ImageDecoder.Source src);
[<Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;)Landroid/graphics/Bitmap;", "", ApiSince=28)>]
static member DecodeBitmap : Android.Graphics.ImageDecoder.Source -> Android.Graphics.Bitmap
Parameters
representing the encoded image. This value cannot be null.
Returns
Bitmap containing the image. This value cannot be null.
- Attributes
Remarks
Create a Bitmap from a Source.
This overload does not take a per-decode listener. A thread or process default listener may still change the decoder settings. To provide a listener for this decode, use DecodeBitmap(ImageDecoder+Source, ImageDecoder+IOnHeaderDecodedListener).
Android reference for android.graphics.ImageDecoder.decodeBitmap.
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
DecodeBitmap(ImageDecoder+Source, ImageDecoder+IOnHeaderDecodedListener)
See #decodeBitmap(Source, OnHeaderDecodedListener).
[Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;Landroid/graphics/ImageDecoder$OnHeaderDecodedListener;)Landroid/graphics/Bitmap;", "", ApiSince=28)]
public static Android.Graphics.Bitmap DecodeBitmap(Android.Graphics.ImageDecoder.Source src, Android.Graphics.ImageDecoder.IOnHeaderDecodedListener listener);
[<Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;Landroid/graphics/ImageDecoder$OnHeaderDecodedListener;)Landroid/graphics/Bitmap;", "", ApiSince=28)>]
static member DecodeBitmap : Android.Graphics.ImageDecoder.Source * Android.Graphics.ImageDecoder.IOnHeaderDecodedListener -> Android.Graphics.Bitmap
Parameters
representing the encoded image. This value cannot be null.
A listener for inspecting the ImageInfo and changing the ImageDecoder settings. It is called on the same thread as decodeBitmap before that method returns. This value cannot be null.
Returns
Bitmap containing the image. This value cannot be null.
- Attributes
Remarks
Create a Bitmap from a Source. This method may take several seconds to complete, so it should only be called from a worker thread.
Android reference for android.graphics.ImageDecoder.decodeBitmap.
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.