Understanding Android Canvas Clipping

与世无争的帅哥 提交于 2019-12-01 05:44:24
Batdude

OK, I need to read more clearly before asking questions. In case anyone is interested I'll answer this myself:

When setting a new clipRect, I assumed it would replace the prior clipping. This is NOT so. Instead it creates an intersection with the previous clipping. From the Android Developers page:

clipRect(float left, float top, float right, float bottom)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!