BitmapTest.java | 29 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); local 33 assertTrue("mutability", bm1.isMutable()); 37 assertEquals("width", 100, bm1.getWidth()); 41 assertEquals("rowbytes", 400, bm1.getRowBytes()); 45 assertEquals("height", 200, bm1.getHeight()); 49 assertTrue("hasAlpha", bm1.hasAlpha()); 53 assertTrue("getConfig", bm1.getConfig() == Bitmap.Config.ARGB_8888); 60 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); local 64 assertTrue("mutability", bm1.isMutable()); 67 bm1.eraseColor(0) 128 Bitmap bm1 = Bitmap.createBitmap(colors, 10, 10, config); local 154 Bitmap bm1 = Bitmap.createBitmap(colors, 10, 10, config); local 186 Bitmap bm1 = Bitmap.createBitmap(colors, 16, 16, config); local [all...] |