Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Fit image in control (https://www.delphipraxis.net/191598-fit-image-control.html)

Uwe Raabe 1. Feb 2017 17:00

AW: Re: Fit image in control
 
Zitat:

Zitat von WojTec (Beitrag 1360591)
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;


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:35 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz