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.
Since there is no OnHeaderDecodedListener, the default settings will be used. In order to change any settings, call decodeBitmap(Source,OnHeaderDecodedListener) instead.
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.
for learning the ImageInfo and changing any default settings on the ImageDecoder. This will be called on the same thread as decodeBitmap before that method returns. This is required in order to change any of the default settings. 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.