Help Center

CGpGraphicsPathIterator.Constructorconstructor

Creates a new **GraphicsPathIterator** object and associates it with a **GraphicsPath** object.

GraphicsconstructorCGpGraphics.incdocumented

Syntax

CONSTRUCTOR CGpGraphicsPathIterator (BYVAL pPath AS CGpGraphicsPath PTR)

Parameters

NameDescription
pPathPointer to a GraphicsPath object that will be associated with this GraphicsPathIterator object.

Description

Creates a new GraphicsPathIterator object and associates it with a GraphicsPath object.

Example

SUB Example_PathIterator (BYVAL hdc AS HDC)

' // Create a graphics object from the window device context DIM graphics AS CGpGraphics = hdc ' // Set the scale transform graphics.ScaleTransformForDpi

' // Create a graphics path DIM path AS CGpGraphicsPath path.AddLine(30, 30, 130, 30) path.AddLine(130, 30, 80, 100)

' // Create path iterator DIM iterator AS CGpGraphicsPathIterator = CGpGraphicsPathIterator(@path)

... ... ...

END SUB

Reference

  • Include file CGpGraphics.inc
  • Defined in AfxNova/CGpPath.inc:640
  • Documented in Graphics/GdiPlus Classes/CGpGraphics Classes.md
  • Topic: CGpGraphics Class