ImageEn, unit imageenproc |
|
TImageEnProc.GradientFill
Declaration
procedure GradientFill(StartColor, EndColor: TColor; Direction: TIEGradientDir = gdVertical); overload;
procedure GradientFill(StartColor, EndColor: TColor; Direction: TIEGDIPlusGradient); overload;
| Demos\ImageEditing\EveryMethod\EveryMethod.dpr |
Description
Replace the selected region with a color gradient.
// Fill the selection with a horizontal gradient from red to blue
ImageEnView1.Proc.GradientFill( clRed, clBlue, gdHorizontal );
// Fill selection with a yellow to red vertical gradient
ImageEnView1.Proc.GradientFill( clYellow, clRed, gdVertical );
// Fill selection with a white to blue diagonal gradient
ImageEnView1.Proc.GradientFill( clWhite, clBlue, gpgDiagonal );
See Also
◼Fill◼AlphaFill◼GradientFillRect