I want to apply the DiscretePathEffect to a path, but when i do it make the path closed, and i don't want this. Is there a way to apply it without closing the path? here is the code i used:
- Code: Select all
path = new Path();
path.setLastPoint(a.x, a.y);
path.lineTo(b.x, b.y);
Paint paint = new Paint();
DiscretePathEffect discretePathEffect = new DiscretePathEffect(15,4);
paint.setPathEffect( discretePathEffect);
paint.getFillPath(path, path);

