Class IconUtils
java.lang.Object
net.thevpc.echo.swing.icons.IconUtils
- Author:
- thevpc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidchangeColor(BufferedImage imgBuf, int oldRed, int oldGreen, int oldBlue, int newRed, int newGreen, int newBlue) Changes all pixels of an old color into a new color, preserving the alpha channel.static ImagegetFactorScaledImage(Image srcImg, float w, float h) static ImagegetFixedSizeImage(Image srcImg, int w, int h) static ImageiconToImage(Icon icon) static booleanstatic ImageIconloadFactorScaleImageIcon(URL u, float width, float height) static ImageIconloadFactorScaleImageIconSafe(URL u, float width, float height) static ImageIconloadFixedScaleImageIcon(URL u, int width, int height) static ImageIconloadFixedScaleImageIconSafe(URL u, int width, int height) static BufferedImagetoBufferedImage(Image img)
-
Constructor Details
-
IconUtils
public IconUtils()
-
-
Method Details
-
changeColor
public static void changeColor(BufferedImage imgBuf, int oldRed, int oldGreen, int oldBlue, int newRed, int newGreen, int newBlue) Changes all pixels of an old color into a new color, preserving the alpha channel. -
isSVG
-
loadFixedScaleImageIconSafe
-
loadFactorScaleImageIconSafe
-
loadFixedScaleImageIcon
-
loadFactorScaleImageIcon
-
iconToImage
-
getFactorScaledImage
-
getFixedSizeImage
-
toBufferedImage
-