Home
|
GR32_Lowlevel
|
|
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-2010 Alex Denisov and the Graphics32 Team - Graphics32 v1.9.0 (r1336) - Build on 9-March-2010