我想在Android中将RectF转换为Rect。目前我的代码如下:
RectF rectF = new RectF();
rectF.set( ... some values ... );
...
Rect rect = new Rect((int)rectF.left,
(int)rectF.top,
(int)rectF.right,
(int)rectF.bottom));
有更好的方法吗?