android Programming Glossary: bwidth
Android ICS and MJPEG using AsyncTask http://stackoverflow.com/questions/10550139/android-ics-and-mjpeg-using-asynctask height private Bitmap makeFpsOverlay Paint p String text Rect b new Rect p.getTextBounds text 0 text.length b int bwidth b.width 2 int bheight b.height 2 Bitmap bm Bitmap.createBitmap bwidth bheight Bitmap.Config.ARGB_8888 Canvas c new Canvas.. Rect p.getTextBounds text 0 text.length b int bwidth b.width 2 int bheight b.height 2 Bitmap bm Bitmap.createBitmap bwidth bheight Bitmap.Config.ARGB_8888 Canvas c new Canvas bm p.setColor overlayBackgroundColor c.drawRect 0 0 bwidth bheight p.. bwidth bheight Bitmap.Config.ARGB_8888 Canvas c new Canvas bm p.setColor overlayBackgroundColor c.drawRect 0 0 bwidth bheight p p.setColor overlayTextColor c.drawText text b.left 1 bheight 2 p.ascent p.descent 2 1 p return bm public void..
Android and MJPEG http://stackoverflow.com/questions/3205191/android-and-mjpeg height private Bitmap makeFpsOverlay Paint p String text Rect b new Rect p.getTextBounds text 0 text.length b int bwidth b.width 2 int bheight b.height 2 Bitmap bm Bitmap.createBitmap bwidth bheight Bitmap.Config.ARGB_8888 Canvas c new Canvas.. Rect p.getTextBounds text 0 text.length b int bwidth b.width 2 int bheight b.height 2 Bitmap bm Bitmap.createBitmap bwidth bheight Bitmap.Config.ARGB_8888 Canvas c new Canvas bm p.setColor overlayBackgroundColor c.drawRect 0 0 bwidth bheight p.. bwidth bheight Bitmap.Config.ARGB_8888 Canvas c new Canvas bm p.setColor overlayBackgroundColor c.drawRect 0 0 bwidth bheight p p.setColor overlayTextColor c.drawText text b.left 1 bheight 2 p.ascent p.descent 2 1 p return bm public void..
|