6
我必须裁剪位图形象方面这个我使用Bitmap.createBitmap(位图源,诠释的x,INT Y,INT宽度,高度INT)返回错误的位图
Bitmap bitmap = Bitmap.createBitmap(imgView.getWidth(),imgView.getHeight(), Bitmap.Config.RGB_565);
Bitmap result =Bitmap.createBitmap(bitmap,imgView.getLeft()+10, imgView.getTop()+50, imgView.getWidth()-20, imgView.getHeight()-100);
bitmap.recycle();
Canvas canvas = new Canvas(result);
imgView.draw(canvas);
但它切底输出中存在bitmap.Top和Left部分的右侧,这意味着x和y的位置不起作用。
我被搜索了一个很好的documentation.But我不能。
在此先感谢
这里有什么问题以及如何解决?
谢谢you.It工作正常。 –
谢谢老板。它运作良好。 – basheer