Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Path.reset vs Path.rewind

In android what is the difference between path.reset() and path.rewind() ?

The docs say that

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.

but what does that really mean ?

when should either one be used ?

like image 300
Gautam Avatar asked Jul 16 '12 13:07

Gautam


1 Answers

Path.reset => Your Path is reseter. Returns to create one: new Path()

Path.rewind => Just empty the contents of the Path, Returns to make .clear() from a list

like image 55
throrin19 Avatar answered Sep 22 '22 05:09

throrin19