Interface IGDIPlus.IGPLinearGradientBrush
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: IGPBlendBrush
Contents |
Syntax
Delphi:
type IGPLinearGradientBrush = interface( IGPBlendBrush )
Summary
Interface to a TGPLinearGradientBrush object.
Description
Defines interface to a TGPLinearGradientBrush object.
The TGPLinearGradientBrush 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 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
- function SetLinearColors(color1 : TGPColor; color2 : TGPColor) : TGPLinearGradientBrush - Sets the starting color and ending color of this linear gradient brush.
- function GetLinearColors(color1 : TGPColor; color2 : TGPColor) : TGPLinearGradientBrush - Returns the starting color and ending color of this linear gradient brush.
- function GetRectangleF() : TGPRectF - Returns the rectangle that defines the boundaries of the gradient.
- function GetRectangle() : TGPRect - Returns the rectangle that defines the boundaries of the gradient.
- function SetGammaCorrection(useGammaCorrection : Boolean) : TGPLinearGradientBrush - Specifies whether gamma correction is enabled for this linear gradient brush.
- function SetBlendArrays(blendFactors : array; blendPositions : array) : TGPLinearGradientBrush
- function SetBlend(blendFactors : array) : TGPLinearGradientBrush
- function SetInterpolationColors(Colors : array) : TGPLinearGradientBrush
- function SetInterpolationColorArrays(presetColors : array; blendPositions : array) : TGPLinearGradientBrush
- function SetBlendBellShape(focus : Single; scale : Single) : TGPLinearGradientBrush - Sets the blend shape of this linear gradient brush to create a custom blend based on a bell-shaped curve.
- function SetBlendTriangularShape(focus : Single; scale : Single) : TGPLinearGradientBrush - Sets the blend shape of this linear gradient brush to create a custom blend based on a triangular shape.
- function SetTransform(matrix : IGPMatrix) : TGPLinearGradientBrush - Sets the world transformation of the object.
- function ResetTransform() : TGPLinearGradientBrush - Sets the world transformation matrix of the object to the identity matrix.
- function MultiplyTransform(matrix : IGPMatrix; order : TGPMatrixOrder) : TGPLinearGradientBrush - Updates the world transformation matrix of the object with the product of itself and another matrix.
- function TranslateTransform(dx : Single; dy : Single; order : TGPMatrixOrder) : TGPLinearGradientBrush - Updates the object's world transformation matrix with the product of itself and a translation matrix.
- function ScaleTransform(sx : Single; sy : Single; order : TGPMatrixOrder) : TGPLinearGradientBrush - Sets the object's world transformation matrix equal to the product of itself and a scaling matrix.
- function RotateTransform(angle : Single; order : TGPMatrixOrder) : TGPLinearGradientBrush - Updates the world transformation matrix of the object with the product of itself and a rotation matrix.
- function SetWrapMode(wrapMode : TGPWrapMode) : TGPLinearGradientBrush - Sets the wrap mode of this texture brush.