`
ynky1026
  • 浏览: 5800 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
在将大图片转成bitmap时造成的内存溢出问题显然无法通过recycle(),软引用等方式来解决(才一个bitmap就溢出了)   比较简单的折中方案就是采用BitmapFactory的内部类 Options来对图片进行压缩     查阅源码javadoc Options类的公共属性inJustDecodeBounds的注释如下         /**          * If set to true, the decoder will return null (no bitmap), but          * the out... fields will still be set, a ...
初学c# 请多指教 废话没有 直接上代码 //将阿拉伯数字转成大写中文         public static string num2String(double num)         {             if (num >= 1000000000)             {                 Console.WriteLine("num is too large");                 return "";             }             string result = &quo ...
Global site tag (gtag.js) - Google Analytics