1

svg-android issue get points of svg path

view story
linux-howto

http://stackoverflow.com – I'm using svg-android to retrieve the points from a plain svg-path. I pass the String into the SVGParser.parsePath(String, boolean) method. Then I create a PathMeasure object and read the coordinates for the distance from 0 to pathmeasure.getLength(). However, the points within this range are only a short segment of the beginning of the path. This is how I do it: ArrayList<ArrayList<PointF>> pathsNpoints=new ArrayList<ArrayList<PointF>>(); ArrayList<String> strPaths = ... ; //contains the String of each svg-path (d-attribute) PathMeasure[] pms = new PathMeasure[ (HowTos)