Class IGDIPlus.TGPGraphicsPath

From Mitov Wiki Doc
Revision as of 17:18, 18 October 2012 by David Alm (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

Package: SignalLabBasicPkg

Unit: IGDIPlus

Inherits: TGPBase

Contents

Syntax

Delphi:

type TGPGraphicsPath = class( TGPBase, IGPGraphicsPath )

C++ Builder:

class TGPGraphicsPath : public TGPBase

Visual C++ (MFC):

class CTGPGraphicsPath : public CTGPBase

C# (.NET):

public ref class TGPGraphicsPath : Mitov.SignalLab.Base

Summary

Stores a sequence of lines, curves, and shapes.

Description

A TGPGraphicsPath object stores a sequence of lines, curves, and shapes. You can draw the entire sequence by calling the DrawPath method of a Graphics object. You can partition the sequence of lines, curves, and shapes into figures, and with the help of a TGPGraphicsPathIterator object, you can draw selected figures. You can also place markers in the sequence, so that you can draw selected portions of the path. Remarks A path consists of one or more figures. As you add lines and curves to a path, those lines and curves become part of a figure. You can start a new figure by calling the TGPGraphicsPath.StartFigure method. When you draw a path, the lines and curves within an individual figure are connected by straight lines; the ending point of one line or curve is connected to the starting point of the next line or curve. No connecting line is drawn between the end of one figure and the start of the next figure.


A figure can be open or closed. You can close a figure by calling the TGPGraphicsPath.CloseFigure method. After you call TGPGraphicsPath.CloseFigure, the next line, curve, or shape that you add to the path is part of the next figure. When you draw a path, the ending point of each closed figure is automatically connected to the starting point of that figure.


Some shapes (for example, rectangles and ellipses) are intrinsically closed. When you add an intrinsically closed shape to a path, that shape is in a figure by itself, and that figure is considered closed even if you don't call TGPGraphicsPath.CloseFigure. The following methods add intrinsically closed figures to a path:


TGPGraphicsPath.AddClosedCurve Methods

TGPGraphicsPath.AddEllipse Methods

TGPGraphicsPath.AddPie Methods

TGPGraphicsPath.AddPolygon Methods

TGPGraphicsPath.AddRectangle Methods

TGPGraphicsPath.AddRectangles Methods

TGPGraphicsPath.AddString Methods

Methods

Public

From TGPBase

Methods

Public

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox