Monday, October 3, 2016

gui design - Should I alter the size of various icons when displayed on different resolution devices?


I know that images look smaller or bigger depending on the screen resolution so an image (say 10x10) would look bigger on a less resolution display and look tiny on a higher resolution display.


enter image description here



I am not saying that it is not possible to load icons of different sizes but that would take a huge amount of computation every time the application is run. Something along the lines of:



  1. Start

  2. Get a Toolkit object

  3. Get the screen size

  4. Compare the screen size against a set of predefined sizes

  5. Screen is small? Load smaller icons

  6. Screen is big? Load bigger icons

  7. Set the icons for various JLabel, JButton, etc

  8. Stop



Is the computation worth it or should I just let the application window and icons look small/big and make a trade-off?


Is it really necessary to maintain the proper sizing of the icons for good aesthetics ?



Answer



It is definitely worth it - it's not only aesthetics, but the usability itself. Especially on a TV, where decreasing the size of an image may make user move closer the set, which in some situations may make the view totally unusable. In this case, it's even harder to get closer to the screen than with a computer (move closer your head) or tablet/mobile phone (move closer the screen).


Thus, you should focus more on the physical size of the image, rather than the resolution. It will need you to use bigger/smaller images or dynamically resize them (pixel-wise) on the screen. If the set of images is a predefined one, you can feed the application with several sizes of these, just as you mentioned. In other case, you can resize the images on either server or the TV, which usually uses a cable internet connection, so it would not affect the transfer waste. I am not sure about the computing possibilities of the TV sets to resize images though - but from my (as a user) experience with them, they are usually overloaded with visual features, limiting their performance and using the porcessing power at almost max out of the box.


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...