#includeSkPath path; path.moveTo(50, 50); path.lineTo(100, 100); path.lineTo(100, 50); path.lineTo(50, 50); path.close(); SkPath::FillType fillType = path.getFillType();
#includeIn this example, we create a path that forms a circle and then set the fill type to even-odd using setFillType(). We then use getFillType() to get the fill type applied to the path. The SkPath class is part of the Skia library, which is a cross-platform graphics engine developed by Google.SkPath path; path.addCircle(50, 50, 50); path.setFillType(SkPath::kEvenOdd_FillType); SkPath::FillType fillType = path.getFillType();