Package com.formdev.flatlaf.extras
Class SVGUtils
- java.lang.Object
-
- com.formdev.flatlaf.extras.SVGUtils
-
public class SVGUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SVGUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.awt.Image>
createWindowIconImages(java.lang.String svgName)
Creates from the given SVG a list of icon images with different sizes that can be used for windows headers.static java.awt.image.BufferedImage
svg2image(java.lang.String svgName, float scaleFactor)
Creates a buffered image and renders the given SVG into it.
-
-
-
Method Detail
-
createWindowIconImages
public static java.util.List<java.awt.Image> createWindowIconImages(java.lang.String svgName)
Creates from the given SVG a list of icon images with different sizes that can be used for windows headers. The SVG should have a size of 16 x 16.- See Also:
Window.setIconImages(List)
-
svg2image
public static java.awt.image.BufferedImage svg2image(java.lang.String svgName, float scaleFactor)
Creates a buffered image and renders the given SVG into it.
-
-