(Gast)
n/a Beiträge
|
Re: Sobel-Operator
29. Jan 2009, 05:05
fips:
Delphi-Quellcode:
procedure pValInRange( var Val: Integer; const cFrom, cTo: Integer );
begin
if Val > cTo then
Val := cTo
else
if Val < cFrom then
Val := cFrom;
end;
function fValInRange( Val: Integer; const cFrom, cTo: Integer ): Integer;
begin
if Val > cTo then
Result := cTo
else
if Val < cFrom then
Result := cFrom
else
Result := Val;
end;
|
|
Zitat
|