public class ImageHelper extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BOTTOM_TO_TOP |
static int |
SIDE_BY_SIDE
Some constant to define how I'd like to merge my images
|
Constructor and Description |
---|
ImageHelper() |
Modifier and Type | Method and Description |
---|---|
static BufferedImage |
captureComponent(Component component)
Capture a Swing Component and return as a BufferedImage
|
static BufferedImage |
combineImages(BufferedImage img1,
BufferedImage img2,
int renderHint)
Helper method to combine two images, in the specified format.
|
public static final int SIDE_BY_SIDE
public static final int BOTTOM_TO_TOP
public static BufferedImage captureComponent(Component component)
component
- the component to capture.public static BufferedImage combineImages(BufferedImage img1, BufferedImage img2, int renderHint)
img1
- the first image to combine.img2
- the second image to combine.renderHint
- how to combine them.SIDE_BY_SIDE
,
BOTTOM_TO_TOP
Copyright © 2015–2021 Fiji. All rights reserved.