public class ZoomRotateCrop extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ZoomRotateCrop.Para
(1) flip first, then rotate (flipX,flipY,rotate)
(2) crop range (cropX,cropY,cropW,cropH)
(3) adapt to the view (viewW * viewH)
|
| Constructor and Description |
|---|
ZoomRotateCrop() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
cropZoom(BufferedImage image,
ZoomRotateCrop.Para para)
crop and zoom
|
static BufferedImage |
exec(InputStream photo,
ZoomRotateCrop.Para para)
Flip, rotate, capture, and zoom images.
|
static BufferedImage |
flip(BufferedImage image,
boolean isFlipX)
Flip, either X-axis (up and down) or Y-axis (left and right)
|
static BufferedImage |
rotate(BufferedImage image,
int degree)
Rotate one angle clockwise (360)
|
public static BufferedImage exec(InputStream photo, ZoomRotateCrop.Para para) throws IOException
IOExceptionpublic static BufferedImage cropZoom(BufferedImage image, ZoomRotateCrop.Para para)
public static BufferedImage flip(BufferedImage image, boolean isFlipX)
public static BufferedImage rotate(BufferedImage image, int degree)
Copyright © 2023. All rights reserved.