Package org.csstudio.utility.batik
Class SVGUtils
java.lang.Object
org.csstudio.utility.batik.SVGUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageDataloadSVG(IPath fullPath, InputStream is, int width, int height) static ImageDatatoSWT(Device device, BufferedImage awtImage) Converts an AWT based buffered image into an SWTImage.
-
Constructor Details
-
SVGUtils
public SVGUtils()
-
-
Method Details
-
loadSVG
-
toSWT
Converts an AWT based buffered image into an SWTImage. This will always return anImagethat has 24 bit depth regardless of the type of AWT buffered image that is passed into the method.- Parameters:
awtImage- theBufferedImageto be converted to anImage- Returns:
- an
Imagethat represents the same image data as the AWTBufferedImagetype.
-