
Android图像处理
Ericosic
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Bitmap上写文字
public Bitmap drawTextToBitmap(Context mContext, int resourceId, String mText) { try { Resources resources = mContext.getResources(); float scale = resources.getDisplayMetri原创 2014-07-16 19:00:13 · 4893 阅读 · 0 评论 -
Android中按图片像素缩放图片的一种方法
try { BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true;//设置true后,位图并没有真正加载到内容,仅仅获取所必要的参数 mBitmap = BitmapFactory.decodeFile(path,options);//path为原创 2014-05-26 09:56:33 · 1797 阅读 · 0 评论 -
Android剪裁图片简单的方法
/** * 按正方形裁切图片 */ public static Bitmap ImageCrop(Bitmap bitmap) { int w = bitmap.getWidth(); // 得到图片的宽,高 int h = bitmap.getHeight(); int wh = w > h ? h : w;// 裁切原创 2014-07-08 22:10:16 · 1344 阅读 · 0 评论 -
Android项目用到的一些开源项目
大家空闲的时候可以学习下,一些项目还是经常能用到的。 1. 对图片的剪裁cropimage-master http://stackoverflow.com/questions/18013406/is-com-android-camera-action-crop-not-available-for-android-jelly-bean-4-3 2. ImageLoader原创 2014-06-17 11:05:22 · 1946 阅读 · 0 评论 -
将View转换成Bitmap
/** * 将中间的View保转换成Bitmap * */ private Bitmap saveViewBitmap(View view) { // get current view bitmap view.setDrawingCacheEnabled(true); view.buildDrawingCache(true); Bitmap bitmap = vie原创 2014-07-09 15:26:34 · 1397 阅读 · 0 评论