![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
图片处理
mikeyNa
这个作者很懒,什么都没留下…
展开
-
android 读取本地图片生成 bitmap
来源:http://blog.sina.com.cn/s/blog_a2a3823601010guz.html想读取本地项目里的资源图片,但又不能用到R文件。 现总结以下几种读取Bitmap的方法。 1.以文件流的方式,假设在sdcard下有 test.png图片FileInputStream fis = new FileInputStream("/sdcard/test.png...转载 2018-06-26 09:45:22 · 17311 阅读 · 2 评论 -
C++图片等比例缩放到固定大小
int minHW = min(img.rows, img.cols); float ratio = max(_input_height, _input_width) / (float)minHW; int newH = max(_input_height, (int)(img.rows * ratio)); int ne...原创 2019-07-24 16:09:38 · 3461 阅读 · 0 评论