Skip to content

Instantly share code, notes, and snippets.

@shirou
Created September 29, 2010 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shirou/602187 to your computer and use it in GitHub Desktop.
Save shirou/602187 to your computer and use it in GitHub Desktop.
Create Bitmap
view.invalidate();
final Bitmap bitmap = Bitmap.createBitmap(mapView.getWidth(),view.getHeight(), Bitmap.Config.ARGB_8888);
final Canvas canvas = new Canvas(bitmap);
view.draw(canvas);
imageView.setImageBitmap(bitmap);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment