net.mindengine.rainbow4j
public class Rainbow4J extends Object
| Constructor and Description |
|---|
Rainbow4J() |
| Modifier and Type | Method and Description |
|---|---|
static ImageCompareResult |
compare(BufferedImage imageA,
BufferedImage imageB,
ComparisonOptions options) |
static ImageCompareResult |
compare(BufferedImage imageA,
BufferedImage imageB,
Rectangle areaA,
Rectangle areaB,
ComparisonOptions options) |
static BufferedImage |
loadImage(InputStream stream) |
static BufferedImage |
loadImage(String filePath) |
static Spectrum |
readSpectrum(BufferedImage image) |
static Spectrum |
readSpectrum(BufferedImage image,
int precision) |
static Spectrum |
readSpectrum(BufferedImage image,
Rectangle rectangle) |
static Spectrum |
readSpectrum(BufferedImage image,
Rectangle area,
int precision) |
static void |
saveImage(BufferedImage image,
File file) |
public static Spectrum readSpectrum(BufferedImage image) throws IOException
IOExceptionpublic static Spectrum readSpectrum(BufferedImage image, Rectangle rectangle) throws IOException
IOExceptionpublic static Spectrum readSpectrum(BufferedImage image, int precision) throws IOException
IOExceptionpublic static ImageCompareResult compare(BufferedImage imageA, BufferedImage imageB, ComparisonOptions options) throws IOException
IOExceptionpublic static ImageCompareResult compare(BufferedImage imageA, BufferedImage imageB, Rectangle areaA, Rectangle areaB, ComparisonOptions options)
public static Spectrum readSpectrum(BufferedImage image, Rectangle area, int precision) throws IOException
image - an image for calculating the color spectrumprecision - 8 to 256 value for spectrum accuracy. The bigger value - the better precision, but the more memory it takesIOExceptionpublic static BufferedImage loadImage(String filePath) throws IOException
IOExceptionpublic static BufferedImage loadImage(InputStream stream) throws IOException
IOExceptionpublic static void saveImage(BufferedImage image, File file) throws IOException
IOExceptionCopyright © 2015. All rights reserved.