bitmapdrawable的使用
来源:互联网 发布:阿里云域名拍卖 编辑:程序博客网 时间:2024/05/23 21:45
InputStream inputStream = getResources().openRawResource(R.drawable.test); BitmapDrawable drawable = new BitmapDrawable(inputStream); Bitmap bitmap = drawable.getBitmap(); bitmap = ThumbnailUtils.extractThumbnail(bitmap, 40, 40);
<pre name="code" class="java">imageView.setImageBitmap(bitmap);BitmapDrawable bitmapDrawable = (BitmapDrawable) image1.getDrawable();Bitmapbitmap = bitmapDrawable.getBitmap();image2.setImageBitmap(Bitmap.createBitmap(bitmap, x, y, 120, 120));
0 0
- android BitmapDrawable的使用
- android BitmapDrawable的使用
- android BitmapDrawable的使用
- android BitmapDrawable的使用
- android BitmapDrawable的使用
- bitmapdrawable的使用
- Android BitmapDrawable()的使用
- Android BitmapDrawable()的使用
- BitmapDrawable和Bitmap.XML的使用
- Bitmap,BitmapDrawable,BitmapFactory的简单使用,以及AssetManager的使用
- BitmapDrawable()不正确使用
- Android BitmapDrawable使用场景
- android bitmapdrawable基本使用
- 使用BitmapDrawable类的getBitmap()获取得到位图;
- BitmapDrawable
- BitmapDrawable
- Android的Drawable之BitmapDrawable
- Drawable系列(一)——BitmapDrawable的属性和使用介绍
- ACM100题-001多边形重心问题
- 解决在Tomcat中同时部署两个项目问题
- 外链全部指向网站首页的优缺点
- UVA Inscribed Circles and Isosceles Triangles
- 让apache支持html页面嵌套
- bitmapdrawable的使用
- Spring Framework源码(九):SpringMVC之从DispatcherServlet说起
- 30个最佳免费的CSS HTML登录表单模板
- iOS基础-可变和不可变容器
- Solr4.10使用教程(三):solr crud
- Virtualbox虚拟机安装CentOS6.5图文详细教程
- 中国大学MOOC-翁恺-C语言程序习题第三周
- ganglia-集群的配置
- UVA ClockHands (时针分针求夹角)