Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
赤またはその他の色のみのビットマップが必要です。を使用できますCreateBitmap()か?
CreateBitmap()
Bitmap b= Bitmap.createBitmap //WHAT DO I NEED HERE?
何か案は?
非効率的な方法で:
Bitmap bitmap = Bitmap.createBitmap(width, height, Config.ARGB_8888); for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { bitmap.setPixel(i, j, Color.argb(255, 255, 0, 0)); } }
完全な赤のビットマップの場合