Class PluginIconUtil

java.lang.Object
privbot.ui.PluginIconUtil

public final class PluginIconUtil extends Object
Shared helpers for plugin nav and panel icons. Use with ImageUtil.loadImageResource(getClass(), "plugin_icon.png") from each plugin.
  • Method Details

    • zoomedIcon

      public static BufferedImage zoomedIcon(BufferedImage source, int size)
      Center-crop the image to the given size so the graphic fills the frame (zoom in). Use for nav button icons. If source is invalid, returns a blank image of the given size.