Bitmap android.graphics.Bitmap.createBitmap(Bitmap source, int x, int y, int width, int height)
这个方法屌爆了,不会用
后面的四个参数到底啥意思啊
不是说截的是一个矩形的x,y,宽高吗/
为何我传入这个:
Bitmap bitmap = Bitmap.createBitmap(b1, 0, 20, b1.getWidth(),
b1.getHeight());
我的意思是从20的高度开始一直到图片的最后
就给我报这个错误
java.lang.IllegalArgumentException: y + height must be <= bitmap.height()
我擦,难道要我填写一个负数么...