Android Guides | Samples

Android.Graphics.BitmapFactory Class

Creates Bitmap objects from various sources, including files, streams, and byte-arrays.

See Also: BitmapFactory

Syntax

[Android.Runtime.Register("android/graphics/BitmapFactory", DoNotGenerateAcw=true)]
public class BitmapFactory : Object

Remarks

Creates Bitmap objects from various sources, including files, streams, and byte-arrays.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Graphics.BitmapFactory are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
DecodeByteArray(Byte[], Int32, Int32) : Bitmap
Decode an immutable bitmap from the specified byte array.
static
DecodeByteArray(Byte[], Int32, Int32, BitmapFactory+Options) : Bitmap
Decode an immutable bitmap from the specified byte array.
static
DecodeByteArrayAsync(Byte[], Int32, Int32) : System.Threading.Tasks.Task<Bitmap>
static
DecodeByteArrayAsync(Byte[], Int32, Int32, BitmapFactory+Options) : System.Threading.Tasks.Task<Bitmap>
static
DecodeFile(String) : Bitmap
Decode a file path into a bitmap.
static
DecodeFile(String, BitmapFactory+Options) : Bitmap
Decode a file path into a bitmap.
static
DecodeFileAsync(String) : System.Threading.Tasks.Task<Bitmap>
static
DecodeFileAsync(String, BitmapFactory+Options) : System.Threading.Tasks.Task<Bitmap>
static
DecodeFileDescriptor(FileDescriptor) : Bitmap
Decode a bitmap from the file descriptor.
static
DecodeFileDescriptor(FileDescriptor, Rect, BitmapFactory+Options) : Bitmap
Decode a bitmap from the file descriptor.
static
DecodeFileDescriptorAsync(FileDescriptor) : System.Threading.Tasks.Task<Bitmap>
static
DecodeFileDescriptorAsync(FileDescriptor, Rect, BitmapFactory+Options) : System.Threading.Tasks.Task<Bitmap>
static
DecodeResource(Resources, Int32) : Bitmap
Synonym for BitmapFactory.DecodeResource(Resources,Int32,Int32) with null Options.
static
DecodeResource(Resources, Int32, BitmapFactory+Options) : Bitmap
Synonym for opening the given resource and calling BitmapFactory.DecodeResourceStream(Resources,TypedValue,TypedValue,TypedValue,TypedValue).
static
DecodeResourceAsync(Resources, Int32) : System.Threading.Tasks.Task<Bitmap>
static
DecodeResourceAsync(Resources, Int32, BitmapFactory+Options) : System.Threading.Tasks.Task<Bitmap>
static
DecodeResourceStream(Resources, TypedValue, Stream, Rect, BitmapFactory+Options) : Bitmap
Decode a new Bitmap from an InputStream.
static
DecodeResourceStreamAsync(Resources, TypedValue, Stream, Rect, BitmapFactory+Options) : System.Threading.Tasks.Task<Bitmap>
static
DecodeStream(Stream) : Bitmap
Decode an input stream into a bitmap.
static
DecodeStream(Stream, Rect, BitmapFactory+Options) : Bitmap
Decode an input stream into a bitmap.
static
DecodeStreamAsync(Stream) : System.Threading.Tasks.Task<Bitmap>
static
DecodeStreamAsync(Stream, Rect, BitmapFactory+Options) : System.Threading.Tasks.Task<Bitmap>