Animation Headlines

Animation

Screen Shot 2014-11-17 at 9.45.31 AM

Android Canvas Draw text 顯示文字

admin-powenko

share

Screen Shot 2014-11-17 at 9.49.32 AM

Android Canvas Draw and Fill background color 背景塗色

admin-powenko

share

bitmap_font_string

Bitmap 顯示中文

admin-powenko

将文本写到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 擴增實境〉

admin-powenko

好文章分享 http://www.xapps.tw/article/266 share

Screen Shot 2012-05-19 at 4.42.52 PM

PowenKo, Android Tutorial 085-2, Animation,Animation_move

admin-powenko

share

Screen Shot 2012-05-19 at 9.26.14 AM

Android Face Detector

admin-powenko

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/ share

Android > image process > convert image to byte array, convert byte array to image

admin-powenko

http://www.programcreek.com/2009/02/java-convert-image-to-byte-array-convert-byte-array-to-image/ share

Screen Shot 2012-04-06 at 9.39.51 PM

PowenKo > Android > image process > color negative

admin-powenko

sample code: Tutorial_UI_imageview_imageprocessActivity share

Screen Shot 2012-04-06 at 9.32.38 PM

PowenKo > Android > image process > gray

admin-powenko

sample code: Tutorial_UI_imageview_imageprocessActivity share

Screen Shot 2012-04-06 at 9.09.29 PM

PowenKo > Android > Image process

admin-powenko

http://code.google.com/p/aipe/ sample code: aipe share

Next Page »
Android7

calendar

Recent Posts

Categories