Package org.csstudio.utility.batik
Class SVGUtils
java.lang.Object
org.csstudio.utility.batik.SVGUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageData
loadSVG
(IPath fullPath, InputStream is, int width, int height) static ImageData
toSWT
(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 anImage
that has 24 bit depth regardless of the type of AWT buffered image that is passed into the method.- Parameters:
awtImage
- theBufferedImage
to be converted to anImage
- Returns:
- an
Image
that represents the same image data as the AWTBufferedImage
type.
-