//冰冻效果 public static Bitmap changeToIce(Bitmap bitmap){ int width = bitmap.getWidth(); int height = bitmap.getHeight(); int dst[] = new int[w...
分类:
其他好文 时间:
2014-07-16 19:32:04
阅读次数:
222
//LOMO效果 public static Bitmap changeToLomo(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); int...
分类:
其他好文 时间:
2014-07-16 19:31:24
阅读次数:
245
//柔化效果 public static Bitmap changeToSoftness(Bitmap bitmap){ int width = bitmap.getWidth(); int height = bitmap.getHeight(); int dst[] = new ...
分类:
其他好文 时间:
2014-07-14 10:12:10
阅读次数:
181
// 黑白效果函数 public static Bitmap changeToGray(Bitmap bitmap,boolean r, boolean g, boolean b) { int width, height; width = bitmap.getWidth(); height...
分类:
其他好文 时间:
2014-07-14 10:09:38
阅读次数:
180
// 反色效果函数 public static Bitmap chageToInvert(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); int colorArray[] = ...
分类:
其他好文 时间:
2014-07-14 10:08:53
阅读次数:
327
publicstaticBitmapgetRoundCornerImage(Bitmapbitmap,introundPixels){//创建一个和原始图片一样大小位图BitmaproundConcerImage=Bitmap.createBitmap(bitmap.getWidth(),bitma...
分类:
其他好文 时间:
2014-07-13 08:43:52
阅读次数:
154
近日查看数据库运行较长的语句,发现我们这边的开发人员真是厉害,不懂装懂的本领真高。
开发以为只要走索引就是快的,而且刚好知道index hint可以强制走索引,所以就用上了。可是走的是bitmap index full scan,把整个索引都扫描了,然后根据索引的位图转化(bitmap conversion to rowids)成rowid,再根据索引的rowid和表的row...
分类:
其他好文 时间:
2014-07-12 23:01:24
阅读次数:
333
首先该文章是总结, 不是原创, 是通过看网上其他大神的文章和自己的一些实践总结出来的.一.图片的存在形式1.文件形式(即以二进制形式存在于硬盘上)2.流的形式(即以二进制形式存在于内存中)3.Bitmap形式这三种形式的区别:文件形式和流的形式对图片体积大小并没有影响,也就是说,如果你手机SD卡上的...
分类:
移动开发 时间:
2014-07-12 16:07:23
阅读次数:
305
一、Bitmap转DrawableBitmap bm=xxx; //xxx根据你的情况获取BitmapDrawable bd=new BitmapDrawable(bm);因为BtimapDrawable是Drawable的子类,最终直接使用bd对象即可。二、 Drawable转Bitmap转成Bi...
分类:
其他好文 时间:
2014-07-12 15:18:19
阅读次数:
164
学习Graphics中遇到位图(Bitmap)中getPixels()方法,对该方法的用法大体理解,但对其中的stride参数却不明白具体的用法以及用意,现记述过程如下:getPixels()方法的用处为获取位图(Bitmap)中的像素值(颜色值),存入类型为int的pixels数组中,至于从RGB...
分类:
其他好文 时间:
2014-07-12 13:52:02
阅读次数:
347