Home | GR32_Lowlevel |
Clamp
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;
Description
First version restricts Value to [0..255] range.
Second version restricts Value to [0..Max] range.
Third version restricts Value to [Min..Max] range.
Copyright ©2000-2007 Alex Denisov and Contributors - Graphics32 v1.8.3 - Build on 4-March-2007