Bitmap 顯示中文
将文本写到Bitmap上,再作为贴图,则可实现文字输出. 文字绘制到Bitmap上的方法为: String mstrTitle = "文字渲染到Bitmap!"; Bitmap bmp = Bitmap.createBitmap(256,256, Bitmap.Config.ARGB_8888); //图象大小要根据文字大小算下,以和文本长度对应 Canvas canvasTemp = new Canvas(bmp); canvasTemp.drawColor(Color.WHITE); Paint p = new Paint(); String familyName ="宋体"; Typeface font = Typeface.create(familyName,Typeface.BOLD); p.setColor(Color.RED); p.setTypeface(font); p.setTextSize(22); canvasTemp.drawText(mstrTitle,0,100,p); 本例图是黑底红字我们可以用Bitmap.getPixel,和setPixel或getPixels,setPixels, 取得点的颜色,根据是否有点,将Alpha通道清空,获得透明的字. 模拟器上显示中文无问题,不知道手机对中文的支持如何. source code in…
AR〈augmented reality 擴增實境〉
好文章分享 http://www.xapps.tw/article/266
Android Face Detector
android.media.FaceDetector android.media.FaceDetector.Face, http://www.developer.com/ws/android/programming/face-detection-with-android-apis.html http://www.smallscreendesign.com/2011/01/25/about-face-detection-on-android-part-1/
Android > image process > convert image to byte array, convert byte array to image
Java: convert image to byte array, convert byte array to image
PowenKo > Android > image process > color negative
sample code: Tutorial_UI_imageview_imageprocessActivity
PowenKo > Android > image process > gray
sample code: Tutorial_UI_imageview_imageprocessActivity
PowenKo > Android > Image process
http://code.google.com/p/aipe/ sample code: aipe