BitmapFactory.Options.inPurgeable
来源:互联网 发布:ubuntu samba 客户端 编辑:程序博客网 时间:2024/05/21 10:53
BitmapFactory.Options.inPurgeable; -
* -
* 如果 inPurgeable 设为True的话表示使用BitmapFactory创建的Bitmap -
* 用于存储Pixel的内存空间在系统内存不足时可以被回收, -
* 在应用需要再次访问Bitmap的Pixel时(如绘制Bitmap或是调用getPixel), -
* 系统会再次调用BitmapFactory decoder重新生成Bitmap的Pixel数组。 -
* 为了能够重新解码图像,bitmap要能够访问存储Bitmap的原始数据。 -
* -
* 在inPurgeable为false时表示创建的Bitmap的Pixel内存空间不能被回收, -
* 这样BitmapFactory在不停decodeByteArray创建新的Bitmap对象, -
* 不同设备的内存不同,因此能够同时创建的Bitmap个数可能有所不同, -
* 200个bitmap足以使大部分的设备重新OutOfMemory错误。 -
* 当isPurgable设为true时,系统中内存不足时, -
* 可以回收部分Bitmap占据的内存空间,这时一般不会出现OutOfMemory 错误。
0 0
- BitmapFactory.Options.inPurgeable
- BitmapFactory.Options.inPurgeable
- android Options.inPurgeable的意思
- BitmapFactory.Options
- BitmapFactory.Options
- BitmapFactory.Options
- BitmapFactory.Options
- BitmapFactory.Options
- BitmapFactory.Options
- BitmapFactory Options
- BitmapFactory.Options
- BitmapFactory.Options
- BitmapFactory.Options
- BitmapFactory.Options
- BitmapFactory.Options
- BitmapFactory.Options
- BitmapFactory.Options
- BitmapFactory。Options.inSampleSize用法
- 用redis写了分布式锁,总感觉缺了点什么
- Selenium定位元素提示Element is not clickable at point 第一篇
- H.264句法和语法总结(九)片层数据句法
- ZCMU-1233-Tour de France
- JAVA中的switch-each语句
- BitmapFactory.Options.inPurgeable
- 说说CSS学习中的瓶颈
- 频繁更新Oracle表更新速度问题解决
- H.264句法和语法总结(十一)宏块层预测句法
- 微信统计数据的获取及存储
- 使用HighChart进行多级钻取
- 涵盖OOP、Java核心、Hibernate、Spring等面试问题
- Jenkins(十一)Jenkins与robotframework的结合
- Mysql笔记之 数据类型