Skip to content

Instantly share code, notes, and snippets.

@Amokrane
Created January 26, 2012 12:51
Show Gist options
  • Save Amokrane/1682633 to your computer and use it in GitHub Desktop.
Save Amokrane/1682633 to your computer and use it in GitHub Desktop.
Load a (mutable) bitmap into a Canvas and write text over it
Paint p = new Paint();
p.setAntiAlias(true);
p.setTextSize(24);
Bitmap b = Bitmap.createBitmap(256, 256, Bitmap.Config.ARGB_8888);
Canvas c = new Canvas(b);
c.drawText("Devoxx", 0.0f, 128.0f, p);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment