次の方法で共有


GraphicsPath.GraphicsPath(const PointF*, const BYTE*, INT, FillMode) constructor

Applies to: desktop apps only

Creates a GraphicsPath::GraphicsPath object based on an array of points, an array of types, and a fill mode.

Syntax

GraphicsPath(
  [in]  const PointF *points,
  [in]  const BYTE *types,
  [in]  INT count,
  [in]  FillMode fillMode
);

Parameters

  • points [in]
    Type: const PointF*

    Pointer to an array of points that specifies the endpoints and control points of the lines and Bezier splines that are used to draw the path.

  • types [in]
    Type: const BYTE*

    Pointer to an array of bytes that holds the point type and a set of flags for each point in the points array. The point type is stored in the three least significant bits, and the flags are stored in the four most significant bits. Possible point types and flags are listed in the PathPointType enumeration.

  • count [in]
    Type: INT

    Integer that specifies the number of elements in the points array. This is the same as the number of elements in the types array.

  • fillMode [in]
    Type: FillMode

    Optional. Element of the FillMode enumeration that specifies how areas are filled if the path intersects itself. The default value is FillModeAlternate.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdipluspath.h (include Gdiplus.h)

Library

Gdiplus.lib

DLL

Gdiplus.dll

See also

GraphicsPath

FillMode

GraphicsPath Constructors

PathData

PathGradientBrush

PathPointType

PointF

Clipping with a Region

Constructing and Drawing Paths

Creating a Path Gradient

Paths

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012