Created
January 26, 2012 12:51
-
-
Save Amokrane/1682633 to your computer and use it in GitHub Desktop.
Load a (mutable) bitmap into a Canvas and write text over it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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