public class ImageUtil
extends java.lang.Object
Constructor and Description |
---|
ImageUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isBlack(java.awt.image.BufferedImage image,
int x,
int y)
Whether the pixel is black.
|
static boolean |
isBlack(java.awt.image.BufferedImage image,
int x,
int y,
int luminanceCutOff)
Whether the pixel is black.
|
static java.awt.image.BufferedImage |
rotate(java.awt.image.BufferedImage image,
double angle,
int cx,
int cy)
Rotates image.
|
public static boolean isBlack(java.awt.image.BufferedImage image, int x, int y)
image
- source imagex
- y
- public static boolean isBlack(java.awt.image.BufferedImage image, int x, int y, int luminanceCutOff)
image
- source imagex
- y
- luminanceCutOff
- public static java.awt.image.BufferedImage rotate(java.awt.image.BufferedImage image, double angle, int cx, int cy)
image
- source imageangle
- by degreescx
- x-coordinate of pivot pointcy
- y-coordinate of pivot pointCopyright © 2018 Tess4J. All Rights Reserved.