I have an android application in which I need to download text from a website, convert it into bitmap format and display it on an LED-based display board.
I am struggling with the bitmap conversion. Tried the following code but its not working. Paint paint = new Paint(); paint.setStyle(Paint.Style.FILL); paint.setColor(Color.RED); paint.setTextSize(16); paint.setAntiAlias(true); paint.setTypeface(Typeface.MONOSPACE); //Bitmap myBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.character); Bitmap myBitmap = Bitmap.createBitmap(16, 16, Bitmap.Config.ALPHA_8); Canvas c = new Canvas(myBitmap); c.drawColor(Color.WHITE); c.drawText("A", 0, 16, paint); I was initially trying position = 0,0. Based on your suggestion, I changed that but nothing seems to work. Any ideas? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en