Home
|
GR32_Lowlevel
|
|
function Wrap(Value: Integer; Max: Integer): Integer; overload;
function Wrap(Value: Integer; Min: Integer; Max: Integer): Integer; overload;
First version wraps integer Value in [0..Max] range. E.g. if Value is 10 and Max is 9, result will be 0.
Second version wraps integer Value in [Min..Max] range.
This function is used in TWrapMode wmRepeat.
Copyright ©2000-2010 Alex Denisov and the Graphics32 Team - Graphics32 v1.9.0 (r1336) - Build on 9-March-2010