Problem with scaling images

Got a problem you cannot solve? Try here.
TheNa2rat
Posts: 9
Joined: Mon Jan 23, 2017 7:34 am

Problem with scaling images

Postby TheNa2rat » Mon Jun 12, 2017 3:56 am

Hello,

I have a problem in InstallAware X3. When I'm trying to put image to dialog box then program want from me image with resolution 497x360.

That resolution it shows me when I have closed laptop and display pulpit on two monitors, but when I'm working only on laptop without monitors it show's me resolution 650x471 for needed image.

So when I'm putting image in that resolution on individual laptop, and after build I turn it on two monitors this is wrong scaling.
Subtitles are ragged etc.

All displays are in full hd, laptop and monitors too.
I tried to change font from Tahoma to any other bitmaps font like MS Sans Serif.
I tied too change type of object from AeroPngImage to Image without result

[img]Przechwytywanie.PNG[/img]

What resolution or option I should apply.
Thank You very much for any tips.

Regards,

Tomasz Hoffmann
Attachments
Przechwytywanie.PNG
Przechwytywanie.PNG (231.4 KiB) Viewed 7324 times

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Problem with scaling images

Postby FrancescoT » Mon Jun 12, 2017 1:24 pm

Dear Tomasz,

did you try with setting as TRUE the "AutoSize" property of the "Image" control?
autosize_prop.png
autosize_prop.png (14.12 KiB) Viewed 7315 times

This will force the dimensions of the "control" to the size of the Image.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

TheNa2rat
Posts: 9
Joined: Mon Jan 23, 2017 7:34 am

Re: Problem with scaling images

Postby TheNa2rat » Tue Jun 13, 2017 1:38 am

Dear FrancescoT,

I tried to use this option, but images are cropped if I'm using two monitors.
I will only to graduate image in existing ground without lose quality.
Please look at attached screen and compare to image in first post.
Attachments
Przechwytywanie.PNG
Przechwytywanie.PNG (181.95 KiB) Viewed 7309 times

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Problem with scaling images

Postby FrancescoT » Tue Jun 13, 2017 5:59 am

Dear Tomasz,

which is the size in pixels (W x H) of your image file?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

TheNa2rat
Posts: 9
Joined: Mon Jan 23, 2017 7:34 am

Re: Problem with scaling images

Postby TheNa2rat » Tue Jun 13, 2017 6:12 am

Dear FrancescoT,

Size of te picture is 650x471 the same what program want when I'm working on individual laptop.
But when i connect two monitors program wants smaller resolutions. I dont know why?

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Problem with scaling images

Postby FrancescoT » Tue Jun 13, 2017 6:43 am

Dear Tomasz,

I am not quite sure to follow your last reply.

is this a problem that you reproduce when working with the Dialog Editor, or is it an issue when displaying the image at setup Runtime?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

TheNa2rat
Posts: 9
Joined: Mon Jan 23, 2017 7:34 am

Re: Problem with scaling images

Postby TheNa2rat » Tue Jun 13, 2017 7:53 am

When I'm adding background with resolution 650x471 on laptop with dialog option auto size: true its all ok

https://www.flickr.com/photos/155829059@N03/34895196570/in/dateposted-public/

https://www.flickr.com/photos/155829059@N03/34895196790/in/dateposted-public/

https://www.flickr.com/photos/155829059@N03/35116303892/in/dateposted-public/


but when I'm adding background during I have connected 2 monitors in the same resoultion with the same picture

https://www.flickr.com/photos/155829059@N03/34895197050/in/dateposted-public/

https://www.flickr.com/photos/155829059@N03/34895197250/in/dateposted-public/

https://www.flickr.com/photos/155829059@N03/35116303522/in/dateposted-public/

Please look at resolution what program want from me at laptop and with 2 monitors.
Picture was cut off. The same is after built it and run exe

I hope that You understand me

Regards

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Problem with scaling images

Postby FrancescoT » Tue Jun 13, 2017 10:24 am

Dear Tomasz,

when using a Background image, you have to keep the same "aspect ratio" between the image and client Area of the dialog.

So to make a sample;
- I created a 600x400 Background-image and then adjusted to the same size, the "ClientHeight" and "ClientWidth" properties of the Welcome Dialog.
Dialog_Client_prop.png
Dialog_Client_prop.png (18.17 KiB) Viewed 7289 times

- for the Background, I used an "AreoPngImage control" and I have explicitly set its size to 600x400.

For what I see, the above approach works fine with any screen resolution (see attached sample).

Hope this helps you.

Regards
Attachments
BkImageTest.zip
(3.68 MiB) Downloaded 270 times
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

TheNa2rat
Posts: 9
Joined: Mon Jan 23, 2017 7:34 am

Re: Problem with scaling images

Postby TheNa2rat » Wed Jun 14, 2017 2:08 am

Dear FrancescoT,

I understand You. I ran dialog box on two monitors and I've been checked area of dialog resolution.
This is 497x360, my picture is in the same resolution, I used too AeroPngImage control with 497x360.

For what I see all is good, but when I ran it on individual laptop it shows me other resolution of area dialog resolution.

For example Yours testing files shows me on laptop needed resolution 800x533 - its other than on two monitors (800x600).
If I'm putting more detailed picture is not looking good. For example please look at attachment


Przechwytywanie.PNG
Przechwytywanie.PNG (218.59 KiB) Viewed 7280 times

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Problem with scaling images

Postby FrancescoT » Wed Jun 14, 2017 10:41 am

Dear Tomasz,

for what I understand, this is due the "display scaling settings" of your machine. When using a DPI over the default 100%, Images and controls get automatically scaled by the system. For now, there isn't any workaround that can be used to skip the problem. Unless of course, you set your DPI scaling level to 100%.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

TheNa2rat
Posts: 9
Joined: Mon Jan 23, 2017 7:34 am

Re: Problem with scaling images

Postby TheNa2rat » Fri Jun 16, 2017 3:43 pm

Dear FrancescoT,

This is answer for my problem, when I set up DPI scaling on my machine to 100% all is working good.
I had 125% scaling on individual laptop and this caused problems.

Thank You very much for resolve my fault.

Regards


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 36 guests