JCL Help:FillGradient

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Fills a rectangle with a gradient pattern.


Pascal

 function FillGradient(DC: HDC; ARect: TRect; ColorCount: Integer; StartColor: TColor; EndColor: TColor; ADirection: TGradientDirection): Boolean; overload;


Parameters

Parameters Description
DC: HDC The handle of the device context where the rectangle will be drawn.
ARect: TRect The rectangle that defines the area that will be filled.
ColorCount: Integer The number of gradiations between the StartColor and the EndColor, this should be a least 1. The higher the number, the smoother the gradient fill.
StartColor: TColor The starting color.
EndColor: TColor The ending color.
ADirection: TGradientDirection The direction of the gradient, horizontial or vertical.


Description

Fills a rectangle with a gradient pattern. You can specify the smoothness of the gradient and the direction.


See Also

TGradientDirection


About

Unit

JclGraphics


Donator

Petr Vones


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page