Package org.dreambot.api.utilities
Class Images
- java.lang.Object
- 
- org.dreambot.api.utilities.Images
 
- 
 public class Images extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description Images()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.image.BufferedImageloadImage(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.BufferedImageloadImage(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
 
- 
- 
- 
Method Detail- 
loadImagepublic 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:
- BufferedImagefrom the URL, null if no script running
 
 - 
loadImagepublic 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:
- BufferedImagefrom the URL
 
 
- 
 
-