Class PluginIconUtil
java.lang.Object
privbot.ui.PluginIconUtil
Shared helpers for plugin nav and panel icons.
Use with ImageUtil.loadImageResource(getClass(), "plugin_icon.png") from each plugin.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImagezoomedIcon(BufferedImage source, int size) Center-crop the image to the given size so the graphic fills the frame (zoom in).
-
Method Details
-
zoomedIcon
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.
-