com.stimulsoft.base.helper
Class StiSvgHelper
java.lang.Object
com.stimulsoft.base.helper.StiSvgHelper
public class StiSvgHelper
- extends java.lang.Object
Copyright Stimulsoft
Method Summary |
static java.awt.image.BufferedImage |
decodeSVG(byte[] svgBytes,
StiRectangle rect,
double zoom)
|
static java.awt.image.BufferedImage |
decodeSVG(java.lang.String base64string,
StiRectangle rect,
double zoom)
|
static StiColor |
getColor(java.lang.String colorName)
|
static boolean |
isSvg(byte[] data)
|
static boolean |
isSvg(java.lang.String data)
|
static java.awt.image.BufferedImage |
rasterize(byte[] bytes,
float width,
float height)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StiSvgHelper
public StiSvgHelper()
getColor
public static StiColor getColor(java.lang.String colorName)
isSvg
public static boolean isSvg(java.lang.String data)
isSvg
public static boolean isSvg(byte[] data)
decodeSVG
public static java.awt.image.BufferedImage decodeSVG(java.lang.String base64string,
StiRectangle rect,
double zoom)
throws java.io.IOException
- Throws:
java.io.IOException
decodeSVG
public static java.awt.image.BufferedImage decodeSVG(byte[] svgBytes,
StiRectangle rect,
double zoom)
throws java.io.IOException
- Throws:
java.io.IOException
rasterize
public static java.awt.image.BufferedImage rasterize(byte[] bytes,
float width,
float height)
throws java.io.IOException
- Throws:
java.io.IOException