The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



NrColors


Unit:SDL_gradfl
Class: TGradFill
Declaration: property NrColors: integer;

The property NrColors determines the color resolution of the gradient fill algorithm. The parameter NrColors may assume values between 1 and 255. Please note that the color resolution affects the displaying speed of the gradient color panel. A good compromise between speed and smoothness of the color gradient is between 50 and 100 colors (depending on the size of the panel).


Please note that the color resolution has no effect on the gtDiagGrid fill type.

Example: This property is used in the following example programs (see http://www.lohninger.com/examples.html for downloading the code): dynamicgf, gradfill



Last Update: 2012-Oct-20