摘要: public static Bitmap drawBackground(int cellSize, int height, int widht) { Bitmap bitmap = Bitmap.createBitmap(widht, height, Config.ARGB_8888); Canvas cv = new Canvas(bitmap); Paint background = new Paint(); background.setColor(BACKGROUND_COLOR); cv.drawRect(0, 0, widht, height, background); ... 阅读全文
posted @ 2012-04-06 13:11 李克华 阅读(2280) 评论(0) 推荐(0)
摘要: public static Bitmap drawBackground(Resources res){Bitmap bit=BitmapFactory.decodeResource(res, R.drawable.back_image);return bit;}; 阅读全文
posted @ 2012-04-06 13:08 李克华 阅读(578) 评论(0) 推荐(0)