08-21-2017 04:35 PM
Hello,
I'm developing a kiosk like program to run on a 1920x1080 touch monitor and display real time data to customers during a tour. The problem is that I'm also developing it on a 1920x1080 monitor. When the program is run , all of the borders and menus present in the IDE disappear and cause the controls to scale. They are close, so it isn't much of a problem, but it really screws up the one picture I display:
I've see a bunch of posts about resizing, and thats ok, but best would be some way for me to design the front panel so it doesn't scale up at all. Is this possible with a monitor the same size as the target display? Failing that, can I force the frame to fit the picture and still let the rest of the controls scale? Could I programmatically figure out how much the display has scaled and apply that to the picture? Some other way? I'm very new at displaying pictures so forgive me if I've missed something obvious.
Thanks,
Simon
Solved! Go to Solution.
08-21-2017 06:00 PM
Hi Simon,
If I understand correctly, your picture control scales correctly, but the actual picture is displaying does not. To fix this, you can use the "zoom" property of the picture control. Right click the picture, select create >> property node >> zoom factor. You can also use the "Bounds" property to find out how big your control is, and fine tune the zoom depending on what you want. If you want the photo to be as big as possible, but not cut anything off, then find two ratios (horizontal pixels / picture control width) and (vertical pixels / picture control height) and apply the smaller of these as your zoom. If you want your picture to fill up the entire control, even if that means cutting off some of the picture, then apply the larger of these.
08-22-2017 08:10 AM
There is a VI property that turns off scaling, that'd be the easiest solution.
08-22-2017 08:54 AM
Thank you both!
Regards,
Simon