Class SVGUtils

java.lang.Object
org.csstudio.utility.batik.SVGUtils

public class SVGUtils extends Object
  • Constructor Details

    • SVGUtils

      public SVGUtils()
  • Method Details

    • loadSVG

      public static ImageData loadSVG(IPath fullPath, InputStream is, int width, int height)
    • toSWT

      public static ImageData toSWT(Device device, BufferedImage awtImage)
      Converts an AWT based buffered image into an SWT Image. This will always return an Image that has 24 bit depth regardless of the type of AWT buffered image that is passed into the method.
      Parameters:
      awtImage - the BufferedImage to be converted to an Image
      Returns:
      an Image that represents the same image data as the AWT BufferedImage type.