org.openstreetmap.josm.plugins.streetside.utils

## Class ImageUtil

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

-     public final class ImageUtil
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) static org.apache.log4j.Logger` | `logger`

  - ### Constructor Summary

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

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static javax.swing.ImageIcon` | `scaleImageIcon(javax.swing.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`

- - ### Field Detail

    - #### logger

          static final org.apache.log4j.Logger logger

  - ### Constructor Detail

    - #### ImageUtil

          private ImageUtil()

  - ### Method Detail

    - #### scaleImageIcon

          public static javax.swing.ImageIcon scaleImageIcon(javax.swing.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