private bitmap getlefticon() , null,
tilemode.repeat);
paint paint = new paint();
paint.setantialias(true);
paint.setshader(gradient);
bitmap bitmap = bitmap.createbitmap(height, height,
config.argb_8888);
canvas canvas = new canvas(bitmap);
canvas.drawcircle(height >> 1, height >> 1, height
>> 1, paint);
paint.setshader(null);
paint.setcolor(color.white);
paint.setalpha(255);
canvas.drawcircle(height >> 2, height >> 1, 0.15f *
height, paint);
paint.setcolor(color.red);
path path = new path();
path.moveto(height >> 3, height >> 1);
path.lineto(0.325f * height, 0.4f * height);
path.lineto(0.325f * height, 0.6f * height);
path.close();
canvas.drawpath(path, paint);
return bitmap.createbitmap(bitmap, 0, 0, height >>
1, height);
}/**
* 獲取右邊指示鈕的bitmap
* * @return
*/private bitmap getrighticon()
bitmap與2 bitmap使用總結
bitmap是一種簡單的資料結構,但在儲存空間壓縮方面卻使用廣泛。bitmap就是用乙個bit位來標記某個元素是否存在 1表示存在,0表示不存在 而2 bitmap就是用兩個bit為來標記某個元素出現的次數 00出現0次,01出現1次,10出現2次及其以上,11無意義。2 bitmap在記憶體中的表...
強人畫的畫 )
這是在哥本哈根的街頭拍到的,這位街頭畫家,據他講,這種做畫的方式也是一種生活,他已經作畫20多年了。呵呵,當然不素偶拍滴啦 先用粉筆打底 測量一下比例是否正確 給路人講解 立體畫草稿 開始繪畫 畫的是felix貓 細節需要精心刻畫 開始完善畫面 中國舞獅和felix貓,呼之欲出 換個角大功告成 與作...
Bitmap重要屬性
bitmap重要屬性整理 2009 02 24 14 13 bitmap 1 public bitmap int width,int height,int stride,pixelformat format,intptr scan0 用指定的大小 畫素格式和畫素資料初始化 bitmap 類的新例項。...