gpt4 book ai didi

android - Path.reset 与 Path.rewind

转载 作者:塔克拉玛干 更新时间:2023-11-01 22:01:48 27 4
gpt4 key购买 nike

在 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com