Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save BurningDroid/2fb580850e5a37eef822ed8d0a0bc5a2 to your computer and use it in GitHub Desktop.

Select an option

Save BurningDroid/2fb580850e5a37eef822ed8d0a0bc5a2 to your computer and use it in GitHub Desktop.
[android] how to draw on the bitmap image
Bitmap newImage = Bitmap.createBitmap(bitmap).copy(Config.ARGB_8888, true);
Canvas canvas = new Canvas(newImage);
canvas.drawCircle(100, 100, 50, pnt);
canvas.drawBitmap(bitImage, x, y, pnt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment