Explanation ImageMode resize

Hi

I try to scale some images on my HUD with the current screensize and ImageMode seems to be what I’m searching for.

So I looked at the example on this site:
http://wiki.jmonkeyengine.org/doku.php/jme3:advanced:nifty_gui_xml_layout?s[]=imagemode
Unfortunately the link to the site where ImageMode is explained doesn’t work anymore and I can’t figure out how to get the correct numbers for the resize.

Can somebody explain this to me?

I have a 100px*100px image that should be 5% of the screen-height and the same value as -width.

Best regards
Gator

Take a look at the official site here (It’s the GitHub Repository) and get the manual from there.

It is in there on Page 37ff.

Have fun :smile:

I knew there was a manual, but I didn’t think these things would be explained there.

Though it seems that function isn’t what I’m searching for, I guess I have to solve this with Java code, no matter how messy this might become.

Thank you very much :slight_smile: