onDraw
int width = canvas.getWidth();
int height = canvas.getHeight();
Bitmap b = BitmapFactory.decodeResource(getResources(), R.drawable.testimage);
Bitmap resize_bitmap = Bitmap.createScaledBitmap(b, width, height, true);
canvas.drawBitmap(resize_bitmap, 0, 0, paint)
'Android' 카테고리의 다른 글
kill app (0) | 2015.03.24 |
---|---|
data network status (0) | 2015.03.24 |
jni char to byte array (0) | 2015.03.24 |
Convert char* to jstring in JNI (0) | 2015.03.24 |
kill app (0) | 2015.03.23 |