Thema: Delphi Sobel-Operator

Einzelnen Beitrag anzeigen

mr_emre_d
(Gast)

n/a Beiträge
 
#6

Re: Sobel-Operator

  Alt 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;
  Mit Zitat antworten Zitat