LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to scale front panel graphics proportionally (e.g. preserve aspect ratio)?

Basic question, but I've found nothing in this forum or in Help that seems to match--I imported and pasted a graphic (my company logo) onto the front panel of my VI, but I can't figure out how to resize it while constraining the aspect ratio (e.g. resizing it proportionally).

 

I'm not asking to do it programmatically; I'm asking simply about resizing it to fit the rest of the front panel's design. 

 

If I grab the handles the drag, it allows arbitrary resizing on both axes. If I hold down Shift it constrains it to resizing one axis only. I've tried every combination of modifier keys, on both OS X and on Windows, and I can't seem to constrain the aspect ratio.

 

I can try to eyeball it, but my eyeballs are terrible at things like this, and if the graphic isn't scaled strictly proportionally it looks horrible.

0 Kudos
Message 1 of 6
(5,653 Views)

While it has not always been available (not in old LV versions) but Stephen did add....

 

Resize Objects >>> Set Width & Height

 

It is a pop-up window that lets you key in the exact height and width.

 

"Resize Objects" is one of the button next the distribute and align buttons.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 6
(5,624 Views)

Thanks! I hadn't seen that before.

 

But there's still no checkbox for Constrain Aspect Ratio, like I see for nearly all other applications that allow image re-sizing. I suppose I can write down the H/W before resizing, close the dialog, drag to resize the width, then re-open the dialog, look at the new width, calculate the appropriate height, and type that in. Smiley Happy

 

But it sure would be nice to have a checkbox and a modifier key for drag-resizing. What's the best method for submitting feature requests to NI? 

0 Kudos
Message 3 of 6
(5,616 Views)

@TheWaterbug wrote:

Thanks! I hadn't seen that before.

 

But there's still no checkbox for Constrain Aspect Ratio, like I see for nearly all other applications that allow image re-sizing. I suppose I can write down the H/W before resizing, close the dialog, drag to resize the width, then re-open the dialog, look at the new width, calculate the appropriate height, and type that in. Smiley Happy

 

But it sure would be nice to have a checkbox and a modifier key for drag-resizing. What's the best method for submitting feature requests to NI? 


My wife has an expression that she adapted after hearing me once...

 

"Stand Back! He is going to do MATH!"

 

Submit your idea to the idea exchange.

 

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/idb-p/labviewideas

 

If you get enough votes, they will consider it and you may get your name mentioned in the release notes.

 

But you will have to make a good enough case to get those votes. So go sell it!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 6
(5,610 Views)

As it turns out, it's already a feature, but it's buggy. See the link above.

0 Kudos
Message 6 of 6
(5,590 Views)