Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); Bitmap.Config conf = bitmap.getConfig();
Bitmap bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.RGB_565); Bitmap.Config conf = bitmap.getConfig();These examples are part of the android.graphics package library.