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
- x-coordinatey
- y-coordinatepublic static boolean isBlack(java.awt.image.BufferedImage image, int x, int y, int luminanceCutOff)
image
- source imagex
- x-coordinatey
- y-coordinateluminanceCutOff
- luminance thresholdpublic 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 © 2024 Tess4J. All rights reserved.