public class ImageLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ICONS
Subfolders, starting from the project folder.
|
static String |
SUFFIX_FILE |
| Constructor and Description |
|---|
ImageLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
checkSuffixFromImageFilename(String fileName) |
static javafx.scene.image.Image |
getImageFromIconFolder(String fileName)
pure image from the folder
|
static javafx.scene.image.Image |
getImageFromIconFolder(String fileName,
double newW,
double newH,
boolean preservationRatio,
boolean smooth)
manipulated image from the folder
|
static InputStream |
getResourceStream(String pkname,
String fname) |
public static String SUFFIX_FILE
public static String ICONS
public static InputStream getResourceStream(String pkname, String fname) throws FileNotFoundException
FileNotFoundExceptionpublic static javafx.scene.image.Image getImageFromIconFolder(String fileName)
fileName - public static javafx.scene.image.Image getImageFromIconFolder(String fileName, double newW, double newH, boolean preservationRatio, boolean smooth)
fileName - newW - newH - preservationRatio - smooth - Copyright © 2023. All rights reserved.