SkPaint paint; paint.setStrokeJoin(SkPaint::kRound_Join); if (paint.getStrokeJoin() == SkPaint::kRound_Join) { // draw path with round join }
SkPaint paint; paint.setStrokeJoin(SkPaint::kMiter_Join); paint.setStrokeMiterLimit(10.0f); if (paint.getStrokeJoin() == SkPaint::kMiter_Join && paint.getStrokeMiter() > paint.getStrokeMiterLimit()) { // draw path with beveled join fallback }This function is included in the Skia Graphics Engine library, which is a comprehensive C++ API for drawing 2D graphics.