Guarantee Tadalafil Money Guaranteetadalafil Y Save Tadalafil Szh Pt 2010 10 Save Tree Save Life Save Tadalafil 第四日、开发者学习笔记——View&Canvas - OPhone|Android技术讨论区 - 中国移动MM论坛
Guarantee Tadalafil Money Guaranteetadalafil Y Save Tadalafil Szh Pt 2010 10 Save Tree Save Life Save Tadalafil
searchsearch Money a Save e Money searche Tree rh Szh Tree i Tree e Tadalafil Guarantee T Szh e Life tobu8
/**
* create the bitmap from a byte array
*
* @param src the bitmap object you want proecss
* @param watermark the water mark above the src
* @return return a bitmap object ,if paramter's length is 0,return null
*/
private Bitmap createBitmap( Bitmap src, Bitmap watermark )
{}
int w = src.getWidth();
int h = src.getHeight();
int ww = watermark.getWidth();
int wh = watermark.getHeight();
//create the new blank bitmap
Bitmap newb = Bitmap.createBitmap( w, h, Config.ARGB_8888 );//创建一个新的和SRC长度宽度一样的位图
Canvas cv = new Canvas( newb );
//draw src into
cv.drawBitmap( src, 0, 0, null );//在 0,0坐标开始画入src
//draw watermark into
cv.drawBitmap( watermark, w - ww + 5, h - wh + 5, null );//在src的右下角画入水印
//save all clip
cv.save( Canvas.ALL_SAVE_FLAG );//保存
//store
cv.restore();//存储
return newb;
}