org.openstreetmap.josm.plugins.streetside.utils

## Class ImageUtil

- java.lang.Object
- - org.openstreetmap.josm.plugins.streetside.utils.ImageUtil

-     public final class ImageUtil
      extends Object

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `private` | `ImageUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ImageIcon` | `scaleImageIcon(ImageIcon icon, int size)` Scales an `ImageIcon` to the desired size

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ImageUtil

          private ImageUtil()

  - ### Method Detail

    - #### scaleImageIcon

          public static ImageIcon scaleImageIcon(ImageIcon icon,
                                                 int size)

      Scales an `ImageIcon` to the desired size
      Parameters:
        `icon` - the icon, which should be resized
        `size` - the desired length of the longest edge of the icon
      Returns:
        the resized `ImageIcon`. It is the same object that you put in, only the contained `Image` is exchanged.

JOSM Plugins