different aspect ratios in the various screen resolutions

286 views
Skip to first unread message

ses...@googlemail.com

unread,
Oct 22, 2019, 5:07:23 AM10/22/19
to innosetup
(Translated by Google)

Hello InnoSetup Team,

unfortunately, the current dimensions of the WizardImage's have different aspect ratios in the various screen resolutions.
In order not to unnecessarily increase the installation file, I only use the ImageFile's for the 200% resolution.
Inno Setup then scales these to match the screen resolution of the computer being installed.
This works great, except for one flaw: the different aspect ratios at different screen resolutions.
This turns circles into ellipses and squares into rectangles.


WizardSmallImageFile 200% (110x106)

WizardSmallImageFile200.png









WizardSmallImageFile 125% (64x68)
WizardSmallImageFile125.png





Is it possible to change the dimensions for the WizardImage's in InnoSetup so that the aspect ratios remain the same?
I adjusted the values a bit. Thus, the images can be displayed without distortion, in all resolutions.

Greetings Roland


WizardImageFile

Current Values       Values without distortion
                   X   Y                        X   Y
100,00 %  164x314    100,00 %  164x316
125,00 %  192x386    125,00 %  205x395
150,00 %  246x459    150,00 %  246x474
175,00 %  273x556    175,00 %  287x553
200,00 %  328x604    200,00 %  328x632
225,00 %  355x700    225,00 %  369x711
250,00 %  410x797    250,00 %  410x790


WizardSmallImageFile

Current Values       Values without distortion
                   X  Y                         X  Y
100,00 %    55x55    100,00 %    56x56
125,00 %    64x68    125,00 %    70x70
150,00 %    83x80    150,00 %    84x84
175,00 %    92x97    175,00 %    98x98
200,00 %  110x106    200,00 %  112x112
225,00 %  119x123    225,00 %  126x126
250,00 %  138x140    250,00 %  140x140

--------------------------------------------------------------------------------

(German original text)

Hallo InnoSetup-Team,

die aktuellen Abmessungen der WizardImage's haben leider unterschiedliche Seitenverhältnisse bei den diversen Bildschirmauflösungen.
Um die Installationsdatei nicht unnötig groß werden zu lassen, benutze ich nur die ImageFile's für die 200% Auflösung.
Inno Setup skaliert diese dann passend zur Bildschirmauflösung des Computers, auf dem installiert wird.
Das funktioniert hervorragend, bis auf einen Schönheitsfehler: die unterschiedlichen Seitenverhältnisse bei unterschiedlichen Bildschirmauflösungen.
So werden Kreise zu Ellipsen und Quadrate zu Rechtecken.

Ist es möglich, die Abmessungen für die WizardImage's in InnoSetup so zu ändern, dass die Seitenverhältnisse gleich bleiben?
Ich habe die Werte etwas angepasst. So lassen sich die Bilder ohne Verzerrung, in allen Auflösungen, darstellen.

Grüße Roland

ses...@googlemail.com

unread,
Aug 1, 2020, 5:42:09 AM8/1/20
to innosetup
The following changes in Wizard.dfm could solve the problem.

object FWizardBitmapImage: TBitmapImage
  Left = 0
  Top = 0
  Width = 164
  Height = 314 ---> should be 316

object FWizardBitmapImage2: TBitmapImage
  Left = 0
  Top = 0
  Width = 164
  Height = 314 ---> should be 316


object FWizardSmallBitmapImage: TBitmapImage
  Left = 440
  Top = 0
  Width = 55 ---> should be 56
  Height = 58 ---> should be 56


Greetings Roland
Reply all
Reply to author
Forward
0 new messages