Freigeben über


ImageDecoder.CreateSource Method

Definition

Overloads

CreateSource(File)

Create a new Source from a android.net.Uri.

CreateSource(ByteBuffer)

Create a new Source from a android.net.Uri.

CreateSource(ICallable)

Create a new Source from a android.net.Uri.

CreateSource(Byte[])

Create a new Source from a android.net.Uri.

CreateSource(ContentResolver, Uri)

Create a new Source from a android.net.Uri.

CreateSource(AssetManager, String)

Create a new Source from a android.net.Uri.

CreateSource(Resources, Int32)

Create a new Source from a android.net.Uri.

CreateSource(Byte[], Int32, Int32)

Create a new Source from a android.net.Uri.

CreateSource(File)

Create a new Source from a android.net.Uri.

[Android.Runtime.Register("createSource", "(Ljava/io/File;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)]
public static Android.Graphics.ImageDecoder.Source CreateSource (Java.IO.File file);
[<Android.Runtime.Register("createSource", "(Ljava/io/File;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)>]
static member CreateSource : Java.IO.File -> Android.Graphics.ImageDecoder.Source

Parameters

file
File

Returns

a new Source object, which can be passed to #decodeDrawable or #decodeBitmap.

Attributes

Remarks

Java documentation for android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri).

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

CreateSource(ByteBuffer)

Create a new Source from a android.net.Uri.

[Android.Runtime.Register("createSource", "(Ljava/nio/ByteBuffer;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)]
public static Android.Graphics.ImageDecoder.Source CreateSource (Java.Nio.ByteBuffer buffer);
[<Android.Runtime.Register("createSource", "(Ljava/nio/ByteBuffer;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)>]
static member CreateSource : Java.Nio.ByteBuffer -> Android.Graphics.ImageDecoder.Source

Parameters

buffer
ByteBuffer

Returns

a new Source object, which can be passed to #decodeDrawable or #decodeBitmap.

Attributes

Remarks

Java documentation for android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri).

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

CreateSource(ICallable)

Create a new Source from a android.net.Uri.

[Android.Runtime.Register("createSource", "(Ljava/util/concurrent/Callable;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=29)]
public static Android.Graphics.ImageDecoder.Source CreateSource (Java.Util.Concurrent.ICallable callable);
[<Android.Runtime.Register("createSource", "(Ljava/util/concurrent/Callable;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=29)>]
static member CreateSource : Java.Util.Concurrent.ICallable -> Android.Graphics.ImageDecoder.Source

Parameters

callable
ICallable

Returns

a new Source object, which can be passed to #decodeDrawable or #decodeBitmap.

Attributes

Remarks

Java documentation for android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri).

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

CreateSource(Byte[])

Create a new Source from a android.net.Uri.

[Android.Runtime.Register("createSource", "([B)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=31)]
public static Android.Graphics.ImageDecoder.Source CreateSource (byte[] data);
[<Android.Runtime.Register("createSource", "([B)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=31)>]
static member CreateSource : byte[] -> Android.Graphics.ImageDecoder.Source

Parameters

data
Byte[]

Returns

a new Source object, which can be passed to #decodeDrawable or #decodeBitmap.

Attributes

Remarks

Java documentation for android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri).

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

CreateSource(ContentResolver, Uri)

Create a new Source from a android.net.Uri.

[Android.Runtime.Register("createSource", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)]
public static Android.Graphics.ImageDecoder.Source CreateSource (Android.Content.ContentResolver cr, Android.Net.Uri uri);
[<Android.Runtime.Register("createSource", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)>]
static member CreateSource : Android.Content.ContentResolver * Android.Net.Uri -> Android.Graphics.ImageDecoder.Source

Parameters

cr
ContentResolver

to retrieve from.

uri
Uri

of the image file.

Returns

a new Source object, which can be passed to #decodeDrawable or #decodeBitmap.

Attributes

Remarks

Java documentation for android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri).

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

CreateSource(AssetManager, String)

Create a new Source from a android.net.Uri.

[Android.Runtime.Register("createSource", "(Landroid/content/res/AssetManager;Ljava/lang/String;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)]
public static Android.Graphics.ImageDecoder.Source CreateSource (Android.Content.Res.AssetManager assets, string fileName);
[<Android.Runtime.Register("createSource", "(Landroid/content/res/AssetManager;Ljava/lang/String;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)>]
static member CreateSource : Android.Content.Res.AssetManager * string -> Android.Graphics.ImageDecoder.Source

Parameters

assets
AssetManager
fileName
String

Returns

a new Source object, which can be passed to #decodeDrawable or #decodeBitmap.

Attributes

Remarks

Java documentation for android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri).

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

CreateSource(Resources, Int32)

Create a new Source from a android.net.Uri.

[Android.Runtime.Register("createSource", "(Landroid/content/res/Resources;I)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)]
public static Android.Graphics.ImageDecoder.Source CreateSource (Android.Content.Res.Resources res, int resId);
[<Android.Runtime.Register("createSource", "(Landroid/content/res/Resources;I)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)>]
static member CreateSource : Android.Content.Res.Resources * int -> Android.Graphics.ImageDecoder.Source

Parameters

res
Resources
resId
Int32

Returns

a new Source object, which can be passed to #decodeDrawable or #decodeBitmap.

Attributes

Remarks

Java documentation for android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri).

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

CreateSource(Byte[], Int32, Int32)

Create a new Source from a android.net.Uri.

[Android.Runtime.Register("createSource", "([BII)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=31)]
public static Android.Graphics.ImageDecoder.Source CreateSource (byte[] data, int offset, int length);
[<Android.Runtime.Register("createSource", "([BII)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=31)>]
static member CreateSource : byte[] * int * int -> Android.Graphics.ImageDecoder.Source

Parameters

data
Byte[]
offset
Int32
length
Int32

Returns

a new Source object, which can be passed to #decodeDrawable or #decodeBitmap.

Attributes

Remarks

Java documentation for android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri).

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