| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| public static Color |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static BufferedImage | |
| public static BufferedImage | |
| public static BufferedImage | |
| public static String | |
| public static String | |
| public static BufferedImage | |
| public static BufferedImage | drawHighlightOval(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, Color innerFillColor)
|
| public static BufferedImage | drawHighlightRectangle(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, int cornerRadius, Color innerFillColor)
|
| public static BufferedImage | drawOval(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, float[] dash, float dashPhase)
|
| public static BufferedImage | drawRectangle(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, int cornerRadius)
|
| public static BufferedImage | drawRectangle(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, int cornerRadius, float[] dash, float dashPhase)
|
| public static byte[] | |
| public static Image | |
| public static Image | |
| public static boolean | |
| public static boolean | |
| public static BufferedImage | Returns: Could benull if the image could not be read from the file (because of whatever strange
reason).file cachedImageBytes, String image file path for error reporting idPath)
|
| public static BufferedImage | Returns: Could benull if the image could not be read from the file (because of whatever strange
reason).file cachedImageFile)
|
| public static BufferedImage | |
| public static BufferedImage | Returns: image or null if failed to download.url of the image imageURL, boolean true if errors are to print to console logImageProcessing)Load image from URL. |
| public static BufferedImage | |
| public static BufferedImage | punchOuterHighlightOval(BufferedImage image, BufferedImage outerImage, int x, int y, int w, int h, int borderWidth, Color outerFillColor, int outerBorderWidth, int outerCornerRadius, boolean applyToImage)
|
| public static BufferedImage | punchOuterHighlightRectangle(BufferedImage image, BufferedImage outerImage, int x, int y, int w, int h, int borderWidth, int cornerRadius, Color outerFillColor, int outerBorderWidth, int outerCornerRadius, boolean applyToImage)
|
| public static BufferedImage | |
| public static void | |
| public static BufferedImage | |
| public static BufferedImage | |
| public static Image |
| BASE64_ENCODING_PATTERN | back to summary |
|---|---|
| private static final Pattern BASE64_ENCODING_PATTERN | |
| TRANSPARENT | back to summary |
|---|---|
| public static Color TRANSPARENT | |
| ImageUtils | back to summary |
|---|---|
| public ImageUtils() | |
| addBorder | back to summary |
|---|---|
| public static BufferedImage addBorder(BufferedImage image, Color borderColor, int borderWidth, int cornerRadius) | |
| base64Decode | back to summary |
|---|---|
| public static BufferedImage base64Decode(File file) | |
| base64Decode | back to summary |
|---|---|
| public static BufferedImage base64Decode(String encoded) | |
| base64Encode | back to summary |
|---|---|
| public static String base64Encode(BufferedImage image) | |
| base64Encode | back to summary |
|---|---|
| public static String base64Encode(File file) | |
| cropImage | back to summary |
|---|---|
| public static BufferedImage cropImage(BufferedImage image, int trimLeft, int trimRight, int trimTop, int trimBottom) | |
| drawHighlightOval | back to summary |
|---|---|
| public static BufferedImage drawHighlightOval(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, Color innerFillColor) | |
| drawHighlightRectangle | back to summary |
|---|---|
| public static BufferedImage drawHighlightRectangle(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, int cornerRadius, Color innerFillColor) | |
| drawOval | back to summary |
|---|---|
| public static BufferedImage drawOval(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, float[] dash, float dashPhase) | |
| drawRectangle | back to summary |
|---|---|
| public static BufferedImage drawRectangle(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, int cornerRadius) | |
| drawRectangle | back to summary |
|---|---|
| public static BufferedImage drawRectangle(BufferedImage image, int x, int y, int w, int h, Color borderColor, int borderWidth, int cornerRadius, float[] dash, float dashPhase) | |
| getImageBytes | back to summary |
|---|---|
| public static byte[] getImageBytes(BufferedImage image) | |
| getImageFromClipboard | back to summary |
|---|---|
| public static Image getImageFromClipboard() | |
| getImageFromTransferable | back to summary |
|---|---|
| public static Image getImageFromTransferable(Transferable transferable) | |
| isEncodedImage | back to summary |
|---|---|
| public static boolean isEncodedImage(String encoded) | |
| isPossiblyEncodedImage | back to summary |
|---|---|
| public static boolean isPossiblyEncodedImage(String encoded) | |
| loadImageFromContent | back to summary |
|---|---|
public static BufferedImage loadImageFromContent(byte[] cachedImageBytes, String idPath)
| |
| loadImageFromFile | back to summary |
|---|---|
public static BufferedImage loadImageFromFile(File cachedImageFile)
| |
| loadImageFromURL | back to summary |
|---|---|
| public static BufferedImage loadImageFromURL(String imageURL) | |
| loadImageFromURL | back to summary |
|---|---|
| public static BufferedImage loadImageFromURL(String imageURL, boolean logImageProcessing) Load image from URL. Note Java7 JDK cannot load some images including GitHub emoji. Compiling this library with Java8 solves the problem.
| |
| makeRoundedCorner | back to summary |
|---|---|
| public static BufferedImage makeRoundedCorner(BufferedImage image, int cornerRadius, int borderWidth) | |
| punchOuterHighlightOval | back to summary |
|---|---|
| public static BufferedImage punchOuterHighlightOval(BufferedImage image, BufferedImage outerImage, int x, int y, int w, int h, int borderWidth, Color outerFillColor, int outerBorderWidth, int outerCornerRadius, boolean applyToImage) | |
| punchOuterHighlightRectangle | back to summary |
|---|---|
| public static BufferedImage punchOuterHighlightRectangle(BufferedImage image, BufferedImage outerImage, int x, int y, int w, int h, int borderWidth, int cornerRadius, Color outerFillColor, int outerBorderWidth, int outerCornerRadius, boolean applyToImage) | |
| removeAlpha | back to summary |
|---|---|
| public static BufferedImage removeAlpha(BufferedImage image) | |
| save | back to summary |
|---|---|
| public static void save(BufferedImage image, File file, String format) | |
| scaleImage | back to summary |
|---|---|
| public static BufferedImage scaleImage(BufferedImage sourceImage, int newWidth, int newHeight, int opType) | |
| toBufferedImage | back to summary |
|---|---|
| public static BufferedImage toBufferedImage(Image src) | |
| toTransparent | back to summary |
|---|---|
| public static Image toTransparent(BufferedImage image, Color color, int tolerance) | |