다음을 통해 공유


Path.IsConvex Property

Definition

Returns the path's convexity, as defined by the content of the path.

public virtual bool IsConvex { [Android.Runtime.Register("isConvex", "()Z", "GetIsConvexHandler")] get; }
[<get: Android.Runtime.Register("isConvex", "()Z", "GetIsConvexHandler")>]
member this.IsConvex : bool

Property Value

True if the path is convex.

Attributes

Remarks

Returns the path's convexity, as defined by the content of the path.

A path is convex if it has a single contour, and only ever curves in a single direction.

This function will calculate the convexity of the path from its control points, and cache the result.

This member is deprecated. This method is not reliable. The way convexity is computed may change from release to release, and convexity could change based on a matrix as well. This method was useful when non-convex Paths were unable to be used in certain contexts, but that is no longer the case.

Java documentation for android.graphics.Path.isConvex().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to