在 android 中,path.reset()
和 path.rewind()
有什么区别?
docs这么说
public void reset ()
Clear any lines and curves from the path, making it empty. This does NOT change the fill-type setting.
public void rewind ()
Rewinds the path: clears any lines and curves from the path but keeps the internal data structure for faster reuse.
但这到底意味着什么?
什么时候应该使用其中一个?
最佳答案
Path.reset => 你的路径是reseter。返回创建一个:new Path()
Path.rewind => 清空 Path 的内容,从列表返回 make .clear()
关于android - Path.reset 与 Path.rewind,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11505617/