BitmapFactory 类

定义

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

[Android.Runtime.Register("android/graphics/BitmapFactory", DoNotGenerateAcw=true)]
public class BitmapFactory : Java.Lang.Object
[<Android.Runtime.Register("android/graphics/BitmapFactory", DoNotGenerateAcw=true)>]
type BitmapFactory = class
    inherit Object
继承
BitmapFactory
属性

注解

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

android.graphics.BitmapFactoryJava 文档。

此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。

构造函数

BitmapFactory()
BitmapFactory(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

属性

Class

返回此 Object的运行时类。

(继承自 Object)
Handle

基础 Android 实例的句柄。

(继承自 Object)
JniIdentityHashCode

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
JniPeerMembers

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

PeerReference

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
ThresholdClass

此 API 支持 Mono for Android 基础结构,不应直接从代码使用。

ThresholdType

此 API 支持 Mono for Android 基础结构,不应直接从代码使用。

方法

Clone()

创建并返回此对象的副本。

(继承自 Object)
DecodeByteArray(Byte[], Int32, Int32)

从指定的字节数组中解码不可变位图。

DecodeByteArray(Byte[], Int32, Int32, BitmapFactory+Options)

从指定的字节数组中解码不可变位图。

DecodeByteArrayAsync(Byte[], Int32, Int32)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

DecodeByteArrayAsync(Byte[], Int32, Int32, BitmapFactory+Options)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

DecodeFile(String)

将文件路径解码为位图。

DecodeFile(String, BitmapFactory+Options)

将文件路径解码为位图。

DecodeFileAsync(String)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

DecodeFileAsync(String, BitmapFactory+Options)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

DecodeFileDescriptor(FileDescriptor)

从文件描述符中解码位图。

DecodeFileDescriptor(FileDescriptor, Rect, BitmapFactory+Options)

从文件描述符中解码位图。

DecodeFileDescriptorAsync(FileDescriptor)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

DecodeFileDescriptorAsync(FileDescriptor, Rect, BitmapFactory+Options)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

DecodeResource(Resources, Int32)

具有 null 选项的 #decodeResource(Resources, int, android.graphics.BitmapFactory.Options) 同义词。

DecodeResource(Resources, Int32, BitmapFactory+Options)

具有 null 选项的 #decodeResource(Resources, int, android.graphics.BitmapFactory.Options) 同义词。

DecodeResourceAsync(Resources, Int32)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

DecodeResourceAsync(Resources, Int32, BitmapFactory+Options)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

DecodeResourceStream(Resources, TypedValue, Stream, Rect, BitmapFactory+Options)

从 InputStream 中解码新位图。

DecodeResourceStreamAsync(Resources, TypedValue, Stream, Rect, BitmapFactory+Options)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

DecodeStream(Stream)

将输入流解码为位图。

DecodeStream(Stream, Rect, BitmapFactory+Options)

将输入流解码为位图。

DecodeStreamAsync(Stream)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

DecodeStreamAsync(Stream, Rect, BitmapFactory+Options)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

Dispose()

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
Dispose(Boolean)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
Equals(Object)

指示其他某个对象是否“等于”此对象。

(继承自 Object)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()

当垃圾回收确定不再引用对象时,由对象上的垃圾回收器调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
ToArray<T>()

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime()

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
Wait()

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>。<>

(继承自 Object)
Wait(Int64)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

(继承自 Object)
Wait(Int64, Int32)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

(继承自 Object)

显式接口实现

IJavaPeerable.Disposed()

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
IJavaPeerable.Finalized()

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
IJavaPeerable.JniManagedPeerState

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

(继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

GetJniTypeName(IJavaPeerable)

从各种源(包括文件、流和字节数组)创建 Bitmap 对象。

适用于