public class InternalImage extends Object
| Constructor and Description |
|---|
InternalImage() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearMemory()
All loaded Images will be released.
|
static void |
freeImage(String name)
Release a specific image if it exists.
|
static void |
freeImage(String path,
String name)
Release a specific image if it exists.
|
static Image |
fullLoad(String name)
Load an image from given path relative to root folder.
|
static Image |
fullLoadFromPath(String path,
String name)
Load an image with specific path.
|
static String |
getRootFolder() |
static Image |
load(String name)
Load image from root folder
|
static Image |
loadFromPath(String path,
String name)
Load an image with specific path.
|
static Image |
reloadFull(String name)
Reloads the image using root folder
|
static Image |
reloadFullFromPath(String path,
String name)
Reloads the image
|
static void |
setRootFolder(String s) |
static Image |
storeImage(String path,
String name,
Image img)
Manually insert a image
|
public static Image loadFromPath(String path, String name)
path - Path to the folder the image is located inname - Name of the imageload(String)public static Image fullLoadFromPath(String path, String name) throws IOException
path - Path to the folder the image is located inname - Name of the imageIOExceptionpublic static Image load(String name)
name - Name of the imageloadFromPath(String, String)public static Image reloadFull(String name) throws IOException
name - Name of the imageIOException - if an error occurs during readingpublic static Image reloadFullFromPath(String path, String name) throws IOException
name - Name of the imagepath - Path to the folder the image is located inIOException - if an error occurs during readingpublic static String getRootFolder()
public static void setRootFolder(String s)
public static Image fullLoad(String name) throws IOException
name - image nameIOException - if an error occurs during readingpublic static void clearMemory()
public static void freeImage(String path, String name)
path - Path to image's foldername - image's namepublic static void freeImage(String name)
name - image's nameCopyright © 2017. All rights reserved.