RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
GraphUtil.SortColorArray Function

Sorts a TColorArray.

Pascal
procedure SortColorArray(ColorArray: TColorArray; L: Integer; R: Integer; SortType: TColorArraySortType; Reverse: Boolean = False);
C++
SortColorArray(TColorArray ColorArray, int L, int R, TColorArraySortType SortType, Boolean Reverse = False);

SortColorArray performs a quick sort over a TColorArray  

ColorArray represents the color array: TColorArray.  

L represents the leftmost element.  

R represents the rightmost element.  

SortType is the sort criterion: TColorArraySortType.  

Reverse gives the option of reversing the sorted array. By default it is false and it is optional.

Note: L and R are used for the recursive calling of the function. For best performance, set them both to 0.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!