Constructor and Description |
---|
ImageHelper() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Rectangle |
createRectangle(int upperLeftX,
int upperLeftY,
int width,
int height)
The method creates a rectangle whose upper-left point is (x,y).
|
static boolean |
equalsByBytes(java.awt.image.BufferedImage imageLeft,
java.awt.image.BufferedImage imageRight)
This method compares two images byte by byte.
|
static java.awt.image.BufferedImage |
getAsImage(java.io.File imageFile)
Reading an image file and converting it into a BufferedImage.
|
static java.awt.image.BufferedImage |
getAsImage(java.lang.String imageFileName)
Reading an image file and converting it into a BufferedImage.
|
public static java.awt.Rectangle createRectangle(int upperLeftX, int upperLeftY, int width, int height)
public static java.awt.image.BufferedImage getAsImage(java.io.File imageFile) throws java.io.IOException
java.io.IOException
public static java.awt.image.BufferedImage getAsImage(java.lang.String imageFileName) throws java.io.IOException
java.io.IOException
public static boolean equalsByBytes(java.awt.image.BufferedImage imageLeft, java.awt.image.BufferedImage imageRight)
Copyright (C) PDFUnit.com. See here for license.