Android: how to convert whole ImageView to Bitmap?
来源:互联网 发布:linux中iconv命令 编辑:程序博客网 时间:2024/06/06 09:05
http://stackoverflow.com/questions/4715044/android-how-to-convert-whole-imageview-to-bitmap
1:
BitmapDrawable drawable = (BitmapDrawable) imageView.getDrawable();Bitmap bitmap = drawable.getBitmap()
2:
11down voteYou could just use the imageView's image cache. It will render the entire view as it is layed out (scaled,bordered with a background etc) to a new bitmap.
just make sure it built.
imageView.buildDrawingCache();Bitmap bmap = imageView.getDrawingCache();
- Android: how to convert whole ImageView to Bitmap?
- Android Bitmap convert to ByteArray
- How to convert a Drawable to a Bitmap?
- how to grey out a whole submenu?
- How to convert XML to Android Binary XML
- bitmap convert to RGB565 display
- bitmap convert to RGB565 display
- How to convert InputStream to String/convert char[] to String
- How to convert string to Guid type.
- How to convert a String to DateTime
- How to convert .mdf to .sdf
- How to convert PDF to XLS
- Java : how to convert text to image
- How to convert wchar_t* to char*
- How To Convert HTML Page To Image
- How to convert QString to std::string?
- how to convert UTC to local time
- Java: How to convert int[] to byte[]
- 通向架构师的道路(第五天)之tomcat集群-群猫乱舞
- 创建线程函数的使用注意事项
- NginxHttpMemcModule
- 异常和集合的笔试题,面试题
- matlab显示图形窗口解决方案
- Android: how to convert whole ImageView to Bitmap?
- hibernate 规范一点
- apache配置 多个目录
- 五大最受欢迎的BUG管理系统
- iphone开发NSLog的使用方法
- 我的gentoo安装纪念贴移植空间版
- mysql备份
- FileItem类的常用方法
- ActionScript右键总结