Einzelnen Beitrag anzeigen

Benutzerbild von Uwe Raabe
Uwe Raabe

Registriert seit: 20. Jan 2006
Ort: Lübbecke
11.014 Beiträge
 
Delphi 12 Athens
 
#11

AW: Re: Fit image in control

  Alt 1. Feb 2017, 17:00
Yeah, what is different way to do this?
Perhaps something like:

Delphi-Quellcode:
if <ScaleX is almost the same as ScaleY> then begin
  Result.Width := AControlWidth;
  Result.Height := AControlHeight;
end
else begin
  < original code >
end;
Uwe Raabe
Certified Delphi Master Developer
Embarcadero MVP
Blog: The Art of Delphi Programming
  Mit Zitat antworten Zitat