public class IconUtils extends Object
| Constructor and Description |
|---|
IconUtils() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
static Image |
getFactorScaledImage(Image srcImg,
float w,
float h) |
static Image |
getFixedSizeImage(Image srcImg,
int w,
int h) |
static Image |
iconToImage(Icon icon) |
static boolean |
isSVG(URL u) |
static ImageIcon |
loadFactorScaleImageIcon(URL u,
float width,
float height) |
static ImageIcon |
loadFactorScaleImageIconSafe(URL u,
float width,
float height) |
static ImageIcon |
loadFixedScaleImageIcon(URL u,
int width,
int height) |
static ImageIcon |
loadFixedScaleImageIconSafe(URL u,
int width,
int height) |
public static void changeColor(BufferedImage imgBuf, int oldRed, int oldGreen, int oldBlue, int newRed, int newGreen, int newBlue)
public static boolean isSVG(URL u)
public static ImageIcon loadFixedScaleImageIconSafe(URL u, int width, int height)
public static ImageIcon loadFactorScaleImageIconSafe(URL u, float width, float height)
public static ImageIcon loadFixedScaleImageIcon(URL u, int width, int height)
public static ImageIcon loadFactorScaleImageIcon(URL u, float width, float height)
Copyright © 2021 vpc open source initiative. All rights reserved.