Lingua

ImageDecoder.DecodeDrawable Metodo

Definizione

Overload

Nome Descrizione
DecodeDrawable(ImageDecoder+Source, ImageDecoder+IOnHeaderDecodedListener)

Vedete #decodeDrawable(Source, OnHeaderDecodedListener).

DecodeDrawable(ImageDecoder+Source)

Vedete #decodeDrawable(Source, OnHeaderDecodedListener).

DecodeDrawable(ImageDecoder+Source, ImageDecoder+IOnHeaderDecodedListener)

Vedete #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

Parametri

src
ImageDecoder.Source

che rappresenta l'immagine codificata. Questo valore non può essere Null.

listener
ImageDecoder.IOnHeaderDecodedListener

per apprendere ImageInfo e modificare le impostazioni predefinite in ImageDecoder. Verrà chiamato sullo stesso thread di decodeDrawable prima che venga restituito il metodo. Questa operazione è necessaria per modificare una delle impostazioni predefinite. Questo valore non può essere Null.

Valori restituiti

Disegnabile per la visualizzazione dell'immagine. Questo valore non può essere Null.

Attributi

Commenti

Creare un oggetto Drawable da un'origine. Il completamento di questo metodo può richiedere alcuni secondi, quindi deve essere chiamato solo da un thread di lavoro.

Informazioni di riferimento su Android per android.graphics.ImageDecoder.decodeDrawable.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a

DecodeDrawable(ImageDecoder+Source)

Vedete #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

Parametri

src
ImageDecoder.Source

che rappresenta l'immagine codificata. Questo valore non può essere Null.

Valori restituiti

Disegnabile per la visualizzazione dell'immagine. Questo valore non può essere Null.

Attributi

Commenti

Creare un oggetto Drawable da un'origine.

Poiché non esiste onHeaderDecodedListener, verranno usate le impostazioni predefinite. Per modificare le impostazioni, chiamare invece decodeDrawable(Source,OnHeaderDecodedListener).

Il completamento di questo metodo può richiedere alcuni secondi, quindi deve essere chiamato solo da un thread di lavoro.

Informazioni di riferimento su Android per android.graphics.ImageDecoder.decodeDrawable.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a