Sets the accuracy of curved paths in a graphics context.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
The largest permissible distance, measured in device pixels, between a point on the true curve and a point on the approximated curve.
This function controls how accurately curved paths are rendered. Setting the flatness value to less than
1 renders highly accurate curves, but lengthens rendering times.
In most cases, you should not change the flatness value. Customizing the flatness value for the capabilities of a particular output device impairs the ability of your application to render to other devices.