Each icon image has maximum and minimum default sizes as well as maximum and minimum allowable sizes. The following two resources control icon image size:
iconImageMaximum resource limits the
maximum size of an icon image. The largest value allowed is 128x128
pixels. The default value is 50x50 pixels.
iconImageMinimum resource limits the
minimum size of an icon image. The smallest value allowed is 16x16
pixels and is also the default value.
When calculating limits for image size, remember that the width of an icon is the image width plus the icon frame plus the space between icons. The height of an icon is the image height plus the icon frame plus the space between icons. The amount of icon decoration and the size of font used in the icon label also affects the height of the icon.
The window manager sizes an icon depending on the size of the image in relation to the specified maximum and minimum sizes.
| If an icon image is | The Window Manager |
|---|---|
| Smaller than the minimum size | Acts as if no image were specified |
| Within maximum and minimum limits | Centers the image within the maximum area |
| Larger than the maximum size | Clips the right side and bottom of the image to fit the maximum size |