欢迎订阅我的博客
文章排行
标签分类
Recent Comments
存档
- May 2012 (7)
- April 2012 (11)
- March 2012 (16)
- February 2012 (14)
- January 2012 (18)
- December 2011 (10)
- November 2011 (9)
- October 2011 (5)
- September 2011 (31)
- August 2011 (10)
- July 2011 (8)
- June 2011 (6)
- May 2011 (17)
- April 2011 (14)
- March 2011 (23)
- February 2011 (13)
- January 2011 (16)
- December 2010 (17)
- November 2010 (19)
- October 2010 (11)
- September 2010 (9)
- August 2010 (14)
- July 2010 (8)
- June 2010 (3)
- May 2010 (1)
- March 2010 (2)
- February 2010 (3)
Friends Blog
Tag Archives: Bitmap
Bitmap的像素操作setpixel
Bitmap的像素操作, 用颜色填充Bitmap ,最后的效果图
1.main.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" [......]
Android取本地或者网络图片转换成Bitmap
目的是取本来或者网络图片,将之转换成Bitmap, 再显示到相应的容器中..
1.设置缓冲区大小
private static final int IO_BUFFER_SIZE = 4 * 1024;
2.自写的函数public static Bitmap GetNetBitmap(String url):
public static Bitmap GetNetBitmap(String url) { Bitmap bitmap = null; &n[......]
Android倒影bitmap图片
// 获得带倒影的图片
public static Bitmap createReflectionImageWithOrigin(Bitmap bitmap) { final int reflectionGap = 4; int width = bitmap.getWidth(); [......]
Android圆角Bitmap图片
静态方法,几个参数, 圆角的像素
// 获得圆角图片的方法 public static Bitmap getRoundedCornerBitmap(Bitmap bitmap, float roundPx) {
Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Config.ARGB_8888)[......]
