Class IGDIPlus.TGPLinearGradientBrush
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 TGPLinearGradientBrush = class( TGPBrush, IGPLinearGradientBrush, IGPTransformable )
C++ Builder:
class TGPLinearGradientBrush : public TGPBrush
Visual C++ (MFC):
class CTGPLinearGradientBrush : public CTGPBrush
C# (.NET):
public ref class TGPLinearGradientBrush : Mitov.SignalLab.Brush
Summary
Defines a brush that paints a color gradient in which the color changes evenly from the starting boundary line of the linear gradient brush to the ending boundary line of the linear gradient brush.
Description
The TGPLinearGradientBrush class defines a brush that paints a color gradient in which the color changes evenly from the starting boundary line of the linear gradient brush to the ending boundary line of the linear gradient brush. The boundary lines of a linear gradient brush are two parallel straight lines. The color gradient is perpendicular to the boundary lines of the linear gradient brush, changing gradually across the stroke from the starting boundary line to the ending boundary line. The color gradient has one color at the starting boundary line and another color at the ending boundary line.
Methods
Public
- function SetLinearColors(color1 : TGPColor; color2 : TGPColor) : TGPLinearGradientBrush
- function GetLinearColors(color1 : TGPColor; color2 : TGPColor) : TGPLinearGradientBrush
- function GetRectangleF() : TGPRectF
- function GetRectangle() : TGPRect
- procedure SetGammaCorrectionProp(useGammaCorrection : Boolean)
- function SetGammaCorrection(useGammaCorrection : Boolean) : TGPLinearGradientBrush
- function GetGammaCorrection() : Boolean
- function GetBlendCount() : Integer
- function GetBlend() : TGPBlendArray
- function SetBlendArrays(blendFactors : array; blendPositions : array) : TGPLinearGradientBrush
- function SetBlend(blendFactors : array) : TGPLinearGradientBrush
- procedure SetBlendProp(blendFactors : TGPBlendArray)
- function GetInterpolationColorCount() : Integer
- procedure SetInterpolationColorsProp(Colors : TGPInterpolationColorArray)
- function SetInterpolationColors(Colors : array) : TGPLinearGradientBrush
- function SetInterpolationColorArrays(presetColors : array; blendPositions : array) : TGPLinearGradientBrush
- function GetInterpolationColors() : TGPInterpolationColorArray
- function SetBlendBellShape(focus : Single; scale : Single) : TGPLinearGradientBrush
- function SetBlendTriangularShape(focus : Single; scale : Single) : TGPLinearGradientBrush
- function SetTransform(matrix : IGPMatrix) : TGPLinearGradientBrush
- procedure SetTransformProp(matrix : IGPMatrix)
- function GetTransform() : IGPMatrix
- function ResetTransform() : TGPLinearGradientBrush
- function MultiplyTransform(matrix : IGPMatrix; order : TGPMatrixOrder) : TGPLinearGradientBrush
- function TranslateTransform(dx : Single; dy : Single; order : TGPMatrixOrder) : TGPLinearGradientBrush
- function ScaleTransform(sx : Single; sy : Single; order : TGPMatrixOrder) : TGPLinearGradientBrush
- function RotateTransform(angle : Single; order : TGPMatrixOrder) : TGPLinearGradientBrush
- procedure SetWrapModeProp(wrapMode : TGPWrapMode)
- function SetWrapMode(wrapMode : TGPWrapMode) : TGPLinearGradientBrush
- function GetWrapMode() : TGPWrapMode