public static Bitmap resize_bitmap(Bitmap old_bmp,int w,int h){ Bitmap new_bmp=Bitmap.createBitmap(w,h, Bitmap.Config.ARGB_8888); Canvas canvas=new Canvas(new_bmp); Paint p=new Paint(); canvas.drawBitmap(old_bmp,0,0,p); return new_bmp;}
沒有留言:
張貼留言