public static BufferedImage loadImageFromURL(String imageURL) { return loadImageFromURL(imageURL, false); }
public static BufferedImage drawRectangle(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, int cornerRadius) { return drawRectangle(image, x, y, w, h, borderColor, borderWidth, cornerRadius, null, 0.0f); }
public static Image getImageFromClipboard() { Transferable transferable = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null); return getImageFromTransferable(transferable); }
image = ImageUtils.loadImageFromFile(imageFile); } catch (URISyntaxException e) { e.printStackTrace(); image = ImageUtils.loadImageFromURL(url, options.logImageProcessing); byte[] imageBytes = ImageUtils.getImageBytes(image); return newImage(docx, imageBytes, filenameHint, attributes, id1, id2);
public static BufferedImage loadImageFromURL(String imageURL, boolean logImageProcessing) { if (imageURL != null) { try { return toBufferedImage(new ImageIcon(new URL(imageURL)).getImage()); } catch (MalformedURLException e) { if (logImageProcessing) { e.printStackTrace(); } } } return null; }
public static BufferedImage loadImageFromURL(String imageURL, boolean logImageProcessing) { if (imageURL != null) { try { return toBufferedImage(new ImageIcon(new URL(imageURL)).getImage()); } catch (MalformedURLException e) { if (logImageProcessing) { e.printStackTrace(); } } } return null; }
public static BufferedImage loadImageFromURL(String imageURL) { return loadImageFromURL(imageURL, false); }
public static Image getImageFromClipboard() { Transferable transferable = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null); return getImageFromTransferable(transferable); }
public static BufferedImage drawRectangle(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, int cornerRadius) { return drawRectangle(image, x, y, w, h, borderColor, borderWidth, cornerRadius, null, 0.0f); }