/*** * It creates an image from your the Application Classpath * @param * @return */ public static Image from_CLASSPATH(String path) { return new Image(path, ImageLocation.CLASSPATH); }
/*** * It creates an image from your local machine. * @param path Image full path. To know if it will work, probably you should specify full path from the root of your system. * @return */ public static Image from_FULL_LOCAL_PATHL(String path) { return new Image(path, ImageLocation.FULL_LOCAL_PATH); }
/*** * It creates an image from the Web. * @param path Image full path. To know if it will work, you should be able to see this image in your browser * @return */ public static Image from_WEB_URL(String path) { return new Image(path, ImageLocation.WEB_URL); }
/** * Creates the Image from a InputStream. Useful when image comes from the database. Issue 85 by Trumbera * * @param filename * @param inputStream * @return */ public static Image from_STREAM(String filename, InputStream inputStream){ return new Image(filename, inputStream); }
/** * Creates the Image from a InputStream. Useful when image comes from the database. Issue 85 by Trumbera * * @param filename * @param inputStream * @return */ public static Image from_STREAM(String filename, InputStream inputStream){ return new Image(filename, inputStream); }
/*** * It creates an image from your local machine. * @param path Image full path. To know if it will work, probably you should specify full path from the root of your system. * @return */ public static Image from_FULL_LOCAL_PATHL(String path) { return new Image(path, ImageLocation.FULL_LOCAL_PATH); }
/*** * It creates an image from the Web. * @param path Image full path. To know if it will work, you should be able to see this image in your browser * @return */ public static Image from_WEB_URL(String path) { return new Image(path, ImageLocation.WEB_URL); }
/*** * It creates an image from your the Application Classpath * @param * @return */ public static Image from_CLASSPATH(String path) { return new Image(path, ImageLocation.CLASSPATH); }