Class Images


  • public class Images
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Images()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.image.BufferedImage loadImage​(java.lang.String url)
      Loads an image from a URL, automatically checks against a cached file location based on script name Will not use invalid calculated cache locations.
      static java.awt.image.BufferedImage loadImage​(java.lang.String url, java.lang.String cacheParent)
      Loads an image from a URL, automatically checks against a cached file location based on the cache parent parameter Appends cacheParent to the general cache path of scripts.path/.cache/Images
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Images

        public Images()
    • Method Detail

      • loadImage

        public static java.awt.image.BufferedImage loadImage​(java.lang.String url)
        Loads an image from a URL, automatically checks against a cached file location based on script name Will not use invalid calculated cache locations.
        Parameters:
        url - URL to load image from
        Returns:
        BufferedImage from the URL, null if no script running
      • loadImage

        public static java.awt.image.BufferedImage loadImage​(java.lang.String url,
                                                             java.lang.String cacheParent)
        Loads an image from a URL, automatically checks against a cached file location based on the cache parent parameter Appends cacheParent to the general cache path of scripts.path/.cache/Images
        Parameters:
        url - URL to load image from
        cacheParent - path to append to the general cached path parent of scripts.path/.cache/Images
        Returns:
        BufferedImage from the URL