Vcl.GraphUtil.SortColorArray

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SortColorArray(ColorArray: TColorArray; L, R: Integer; SortType: TColorArraySortType; Reverse: Boolean);

C++

extern DELPHI_PACKAGE void __fastcall SortColorArray(TColorArray ColorArray, int L, int R, TColorArraySortType SortType, bool Reverse = false);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.GraphUtil.pas
Vcl.GraphUtil.hpp
Vcl.GraphUtil Vcl.GraphUtil

Description

Sorts a TColorArray.

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.

See Also