Android——Bitmapfactory.options
来源:互联网 发布:阿里云待遇 编辑:程序博客网 时间:2024/05/02 02:34
public Bitmap inBitmap
If set, decode methods that take the Options object will attempt to reuse this bitmap when loading content.
public int inDensity
The pixel density to use for the bitmap.
public boolean inDither
If dither is true, the decoder will attempt to dither the decoded image.
public boolean inInputShareable
This field works in conjuction with inPurgeable.
public boolean inJustDecodeBounds
If set to true, the decoder will return null (no bitmap), but the out…
仅把宽高之类的数据返回减少内存。
public boolean inMutable
If set, decode methods will always return a mutable Bitmap instead of an immutable one.
public boolean inPreferQualityOverSpeed
If inPreferQualityOverSpeed is set to true, the decoder will try to decode the reconstructed image to a higher quality even at the expense of the decoding speed.
publicBitmap.Config inPreferredConfig
If this is non-null, the decoder will try to decode into this internal configuration.
图片颜色,默认Bitmap.Config.ARGB_8888 可改为Bitmap.Config.ARGB_4444
public boolean inPurgeable
If this is set to true, then the resulting bitmap will allocate its pixels such that they can be purged if the system needs to reclaim memory.
public int inSampleSize
If set to a value > 1, requests the decoder to subsample the original image, returning a smaller image to save memory.
缩小倍率,建议2的N次方
public boolean inScaled
When this flag is set, if inDensity and inTargetDensity are not 0, the bitmap will be scaled to match inTargetDensity when loaded, rather than relying on the graphics system scaling it each time it is drawn to a Canvas.
public int inScreenDensity
The pixel density of the actual screen that is being used.
public int inTargetDensity
The pixel density of the destination this bitmap will be drawn to.
public byte[] inTempStorage
Temp storage to use for decoding.
public boolean mCancel
Flag to indicate that cancel has been called on this object.
public int outHeight
The resulting height of the bitmap, set independent of the state of inJustDecodeBounds.
输出的高
public String outMimeType
If known, this string is set to the mimetype of the decoded image.
public int outWidth
输入的宽
If set, decode methods that take the Options object will attempt to reuse this bitmap when loading content.
public int inDensity
The pixel density to use for the bitmap.
public boolean inDither
If dither is true, the decoder will attempt to dither the decoded image.
public boolean inInputShareable
This field works in conjuction with inPurgeable.
public boolean inJustDecodeBounds
If set to true, the decoder will return null (no bitmap), but the out…
仅把宽高之类的数据返回减少内存。
public boolean inMutable
If set, decode methods will always return a mutable Bitmap instead of an immutable one.
public boolean inPreferQualityOverSpeed
If inPreferQualityOverSpeed is set to true, the decoder will try to decode the reconstructed image to a higher quality even at the expense of the decoding speed.
publicBitmap.Config inPreferredConfig
If this is non-null, the decoder will try to decode into this internal configuration.
图片颜色,默认Bitmap.Config.ARGB_8888 可改为Bitmap.Config.ARGB_4444
public boolean inPurgeable
If this is set to true, then the resulting bitmap will allocate its pixels such that they can be purged if the system needs to reclaim memory.
public int inSampleSize
If set to a value > 1, requests the decoder to subsample the original image, returning a smaller image to save memory.
缩小倍率,建议2的N次方
public boolean inScaled
When this flag is set, if inDensity and inTargetDensity are not 0, the bitmap will be scaled to match inTargetDensity when loaded, rather than relying on the graphics system scaling it each time it is drawn to a Canvas.
public int inScreenDensity
The pixel density of the actual screen that is being used.
public int inTargetDensity
The pixel density of the destination this bitmap will be drawn to.
public byte[] inTempStorage
Temp storage to use for decoding.
public boolean mCancel
Flag to indicate that cancel has been called on this object.
public int outHeight
The resulting height of the bitmap, set independent of the state of inJustDecodeBounds.
输出的高
public String outMimeType
If known, this string is set to the mimetype of the decoded image.
public int outWidth
输入的宽
- Android——Bitmapfactory.options
- Android——Bitmapfactory.options
- Bitmap——BitmapFactory.Options
- android BitmapFactory.Options
- android BitmapFactory.Options
- android BitmapFactory.Options
- android BitmapFactory.Options
- android BitmapFactory.Options
- Android:BitmapFactory.Options
- Android Bitmapfactory.Options
- Bitmap——BitmapFactory.Options的使用
- Android中BitmapFactory.Options详解
- android BitmapFactory.Options参数介绍
- Android中BitmapFactory.Options详解
- Android中BitmapFactory.Options学习
- Android中BitmapFactory.Options详解
- Android中BitmapFactory.Options详解
- Android中BitmapFactory.Options详解
- android 进程通信aidl
- 完善匹配中文的Php正则表达式
- sgu 242 Student's Morning--最大流 或 多重匹配
- lamp 李强强特级教程 视频教程 第一集 网站大访问量 服务器集群 负载均衡 PHP 笔记心得
- 写了个android下的计算器,贴贴源码
- Android——Bitmapfactory.options
- Java面向对象总结(基础篇)(草稿)
- ffmpeg教程四 —— 选项详解
- Opencv与VC6.0环境的配置
- 自己写的归并排序 很烂,不过 调试成功了
- Linux下的代码量计算
- HTML网页设计每日笔记(给初学者的一份礼物) (自己做的一个邮箱界面)
- jquery html改变div当中的内容
- jquery特效插件