Android Bitmap类的常用方法
来源:互联网 发布:ov7670 51单片机 编辑:程序博客网 时间:2024/05/22 17:05
Bitmap类代表位图,是Android系统中图像处理的一个类。可用来获取图像文件信息,进行图像剪切、旋转、缩放等操作,也可用来指定格式保存图像文件。
Bitmap类的常用方法:
方法描述compress(Bitmap.CompressFormat format,int quality,OutputStream stream)用于将Bitmap对象压缩为指定格式并保存到指定的文件输出流中,其中format参数值可以是Bitmap.CompressFomat.PNG、Bitmap.CompressFomat.JPEG和Bitmap.CompressFomat.WEBPcreateBitmap(Bitmap source,int x,int y,int width,int height,Matrix m,boolean filter)用于从源位图的指定坐标点开始,“挖取”指定宽度和高度的一块图像来创建新的Bitmap对象,并按Matrix指定规则进行变换createBitmap(int width,int height,Bitmap.Config config)用于创建一个指定宽度和高度的新的Bitmap对象createBitmap(Bitmap source,int x,int y,int width,int height)用于从源位图的指定坐标点开始,“挖取”指定宽度和高度的一块图像来创建新的Bitmap对象createBitmap(int[] colors,int width,int height,Bitmap.Config config)使用颜色数组创建一个指定宽度和高度的新的Bitmap对象,其中,数组元素的个数为width*heightcreateBitmap(Bitmap src)用于使用源位图创建一个新的Bitmap对象createScaledBitmap(Bitmap src,int dstWidth,int dstHeigt,boolean filter)用于将源位图缩放为指定宽度和高度的新的Bitmap对象isRecycled()用于判断Bitmap对象是否被回收recycle()强制回收Bitmap对象
- Android Bitmap类的常用方法
- Android的Bitmap类中常用方法
- Android中常用的bitmap处理方法
- Android中常用的bitmap处理方法 (bitmap工具类)
- Android中一些常用类的常用方法(Math、Random、Color、Paint、Canvas、Bitmap、BitmapFactory)
- Android常用的Drawable和Bitmap之间的转化方法
- Android——Bitmap及其BitmapFactory的常用方法
- Android 4K高清图片解码显示(2)BitmapFactory常用Bitmap的解码方法
- android bitmap,canvas,paint常用方法API,总结
- android 获取Bitmap 的两种方法
- android上Bitmap获取的方法
- android获得Bitmap的三种方法
- android 获取Bitmap 的两种方法
- Android获得Bitmap的三种方法
- Android关于Bitmap的几个方法
- Android处理Bitmap的一些方法(多)
- Android几个bitmap相关的方法
- android bitmap 压缩 方法
- 【IOS】IOS工程自动打包并发布脚本实现
- 检测笔记本电脑的主板,cpu,硬盘的温度
- java 总结4种线程中操作UI界面的方法
- android 基础知识 九
- 检测笔记本电脑的主板,cpu,硬盘的温度
- Android Bitmap类的常用方法
- Linux Shell编程与编辑器使用详解
- java 求和
- 常用Windows消息、常量命名参考
- Windows 7下用xshell4远程控制ubuntu12.04
- MySql常用语句
- android 基础知识 十
- tomcat内存溢出问题解决方法
- 倒计时 到时间后自动提交