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.
私の質問は: 円を作成してビットマップにし、キャンバスに表示しない方法はありますか??たとえば、黒い円を作成してビットマップに変換しますが、canvas.setBitmap(Bitmap bitmap) を使用しません。前もって感謝します。
Bitmap静的メソッド (Bitmap.create) を使用してビットマップオブジェクトを簡単に取得し、 bitmapObject.
bitmapObject
コードは次のようになります。
Bitmap bitmap = Bitmap.create(width, height, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); //draw on your canvas.