ImageDecoder.DecodeBitmap 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| DecodeBitmap(ImageDecoder+Source, ImageDecoder+IOnHeaderDecodedListener) |
请参阅 |
| DecodeBitmap(ImageDecoder+Source) |
请参阅 |
DecodeBitmap(ImageDecoder+Source, ImageDecoder+IOnHeaderDecodedListener)
请参阅 #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
参数
表示编码的图像。 此值不能为 null。
用于学习 ImageInfo 并更改 ImageDecoder 上的任何默认设置。 在该方法返回之前,将在与 decodeBitmap 相同的线程上调用此方法。 若要更改任何默认设置,这是必需的。 此值不能为 null。
返回
包含图像的位图。 此值不能为 null。
- 属性
注解
Android 参考。android.graphics.ImageDecoder.decodeBitmap
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
DecodeBitmap(ImageDecoder+Source)
请参阅 #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
参数
表示编码的图像。 此值不能为 null。
返回
包含图像的位图。 此值不能为 null。
- 属性
注解
Android 参考。android.graphics.ImageDecoder.decodeBitmap
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。