Class ScaledImageIcon

All Implemented Interfaces:
Serializable, Accessible, Icon, FileBasedIcon

public class ScaledImageIcon extends DerivedImageIcon
LazyImageIcon that creates a scaled version of an icon
See Also:
  • Constructor Details

    • ScaledImageIcon

      public ScaledImageIcon(Icon baseIcon, int width, int height)
      Construct wrapped scaled ImageIcon based upon specified baseIcon and desired size. The rendering hints of Image.SCALE_AREA_AVERAGING will be applied.
      Parameters:
      baseIcon - base icon
      width - new icon width
      height - new icon height
    • ScaledImageIcon

      public ScaledImageIcon(Icon baseIcon, int width, int height, int hints)
      Construct wrapped scaled ImageIcon based upon specified baseIcon and desired size
      Parameters:
      baseIcon - base icon
      width - new icon width
      height - new icon height
      hints - RenderingHints used by Graphics2D
  • Method Details