Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSBezierPathMBS class.

NSBezierPathMBS.defaultFlatness as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Cocoa Drawing MBS MacBase Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The default flatness value for all paths.

The flatness value specifies the accuracy (or smoothness) with which curves are rendered. It is also the maximum error tolerance (measured in pixels) for rendering curves, where smaller numbers give smoother curves at the expense of more computation. The exact interpretation may vary slightly on different rendering devices.

The default flatness value is 0.6, which yields smooth curves.
(Read and Write property)

NSBezierPathMBS.defaultLineCapStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Cocoa Drawing MBS MacBase Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The default line cap style for all paths.

The default line cap style or NSButtLineCapStyle if no other style has been set. For a list of values, see Constants.

The default line cap style can be overridden for individual paths by setting a custom style for that path using the LineCapStyle property.
(Read and Write property)

NSBezierPathMBS.defaultLineJoinStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Cocoa Drawing MBS MacBase Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The default line join style for all paths.

The default line join style or NSMiterLineJoinStyle if no other value has been set. For a list of values, see Constants.
(Read and Write property)

NSBezierPathMBS.defaultLineWidth as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Cocoa Drawing MBS MacBase Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the default line width for the all paths.

The line width defines the thickness of stroked paths. A width of 0 is interpreted as the thinnest line that can be rendered on a particular device. The actual rendered line width may vary from the specified width by as much as 2 device pixels, depending on the position of the line with respect to the pixel grid and the current anti-aliasing settings. The width of the line may also be affected by scaling factors specified in the current transformation matrix of the active graphics context.
(Read and Write property)

NSBezierPathMBS.defaultMiterLimit as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Cocoa Drawing MBS MacBase Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the default miter limit for all paths.

The miter limit helps you avoid spikes at the junction of two line segments connected by a miter join (NSMiterLineJoinStyle). If the ratio of the miter length—the diagonal length of the miter join—to the line thickness exceeds the miter limit, the joint is converted to a bevel join. The default miter limit value is 10, which converts miters whose angle at the joint is less than 11 degrees.
(Read and Write property)

NSBezierPathMBS.defaultWindingRule as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Cocoa Drawing MBS MacBase Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the default winding rule used to fill all paths.

The current default winding rule or NSNonZeroWindingRule if no default rule has been set. This value may be either NSNonZeroWindingRule or NSEvenOddWindingRule.

Winding rules determine how to paint (or fill) the region enclosed by a path. You use this method to set the default rule that is applied to paths that do not have a custom winding rule assigned.
(Read and Write property)

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...