Table of Contents

TTMSFNCGraphics.PointInPath Method

Tests whether a floating-point point lies within a graphics path.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Overloads

Overload 1

Tests whether a floating-point point lies within a graphics path.

class function PointInPath(APoint: TPointF; APath: TTMSFNCGraphicsPath): Boolean; overload; virtual;

Parameters

Name Description
APoint Floating-point point to test.
APath Closed path to test against.

Returns

True if APoint lies within or on the boundary of APath.

Overload 2

Tests whether an integer point lies within a graphics path.

class function PointInPath(APoint: TPoint; APath: TTMSFNCGraphicsPath): Boolean; overload; virtual;

Parameters

Name Description
APoint Integer point to test.
APath Closed path to test against.

Returns

True if APoint lies within or on the boundary of APath.