Ich möchte eine leere Bitmap erstellen und die Zeichenfläche für diese Bitmap festlegen und dann eine beliebige Form auf der Bitmap zeichnen.
Das ist wahrscheinlich einfacher als Sie denken:
int w = WIDTH_PX, h = HEIGHT_PX;
Bitmap.Config conf = Bitmap.Config.ARGB_8888; // see other conf types
Bitmap bmp = Bitmap.createBitmap(w, h, conf); // this creates a MUTABLE bitmap
Canvas canvas = new Canvas(bmp);
// ready to draw on that bitmap through that canvas
Hier ist eine Reihe von Tutorials, die ich zum Thema gefunden habe: Drawing with Canvas Series