Class IGDIPlus.TGPPathGradientBrush

From Mitov Wiki Doc
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: TGPBrush

Contents

Syntax

Delphi:

type TGPPathGradientBrush = class( TGPBrush, IGPPathGradientBrush, IGPTransformable )

C++ Builder:

class TGPPathGradientBrush : public TGPBrush

Visual C++ (MFC):

class CTGPPathGradientBrush : public CTGPBrush

C# (.NET):

public ref class TGPPathGradientBrush : Mitov.SignalLab.Brush

Summary

Stores the attributes of a color gradient that you can use to fill the interior of a path with a gradually changing color.

Description

A TGPPathGradientBrush object stores the attributes of a color gradient that you can use to fill the interior of a path with a gradually changing color. A path gradient brush has a boundary path, a boundary color, a center point, and a center color. When you paint an area with a path gradient brush, the color changes gradually from the boundary color to the center color as you move from the boundary path to the center point. Remarks By default, the center point of a path gradient brush is the centroid of the boundary path, but you can set the center point to any location, inside or outside the path, by calling TGPPathGradientBrush.SetCenterPoint Methods.


The boundary path can be a polygon specified by an array of points, and each of those points along the boundary can have a different color.


By default, the color is linearly related to the distance as you move from a point on the boundary to the center point. You can customize the relationship between color and distance by calling TGPPathGradientBrush.SetBlend.

Methods

Public

From TGPBrush

Methods

Public

From TGPBase

Methods

Public

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox