function Clamp(const Value: Integer): TColor32; overload;
function Clamp(Value: Integer; Max: Integer): Integer; overload;
function Clamp(Value: Integer; Min: Integer; Max: Integer): Integer; overload;
First version restricts Value to [0..255] range.
Second version restricts Value to [0..Max] range.
Third version restricts Value to [Min..Max] range.
This function is used in TWrapMode wmClamp.
Copyright ©2000-2024 Alex Denisov and the Graphics32 Team - Graphics32 2.0 - Help file built on 18 Feb 2024