ImageDecoder.DecodeDrawable 方法

定义

重载

名称 说明
DecodeDrawable(ImageDecoder+Source)

请参阅 #decodeDrawable(Source, OnHeaderDecodedListener)

DecodeDrawable(ImageDecoder+Source, ImageDecoder+IOnHeaderDecodedListener)

请参阅 #decodeDrawable(Source, OnHeaderDecodedListener)

DecodeDrawable(ImageDecoder+Source)

请参阅 #decodeDrawable(Source, OnHeaderDecodedListener)

[Android.Runtime.Register("decodeDrawable", "(Landroid/graphics/ImageDecoder$Source;)Landroid/graphics/drawable/Drawable;", "", ApiSince=28)]
public static Android.Graphics.Drawables.Drawable DecodeDrawable(Android.Graphics.ImageDecoder.Source src);
[<Android.Runtime.Register("decodeDrawable", "(Landroid/graphics/ImageDecoder$Source;)Landroid/graphics/drawable/Drawable;", "", ApiSince=28)>]
static member DecodeDrawable : Android.Graphics.ImageDecoder.Source -> Android.Graphics.Drawables.Drawable

参数

src
ImageDecoder.Source

表示编码的图像。 此值不能为 null。

返回

可绘制用于显示图像。 此值不能为 null。

属性

注解

Android 参考。android.graphics.ImageDecoder.decodeDrawable

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

DecodeDrawable(ImageDecoder+Source, ImageDecoder+IOnHeaderDecodedListener)

请参阅 #decodeDrawable(Source, OnHeaderDecodedListener)

[Android.Runtime.Register("decodeDrawable", "(Landroid/graphics/ImageDecoder$Source;Landroid/graphics/ImageDecoder$OnHeaderDecodedListener;)Landroid/graphics/drawable/Drawable;", "", ApiSince=28)]
public static Android.Graphics.Drawables.Drawable DecodeDrawable(Android.Graphics.ImageDecoder.Source src, Android.Graphics.ImageDecoder.IOnHeaderDecodedListener listener);
[<Android.Runtime.Register("decodeDrawable", "(Landroid/graphics/ImageDecoder$Source;Landroid/graphics/ImageDecoder$OnHeaderDecodedListener;)Landroid/graphics/drawable/Drawable;", "", ApiSince=28)>]
static member DecodeDrawable : Android.Graphics.ImageDecoder.Source * Android.Graphics.ImageDecoder.IOnHeaderDecodedListener -> Android.Graphics.Drawables.Drawable

参数

src
ImageDecoder.Source

表示编码的图像。 此值不能为 null。

listener
ImageDecoder.IOnHeaderDecodedListener

用于学习 ImageInfo 并更改 ImageDecoder 上的任何默认设置。 在该方法返回之前,将在可解码的同一线程上调用此方法。 若要更改任何默认设置,这是必需的。 此值不能为 null。

返回

可绘制用于显示图像。 此值不能为 null。

属性

注解

Android 参考。android.graphics.ImageDecoder.decodeDrawable

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于