public class ImageUtils extends Object
| Constructor and Description |
|---|
ImageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
clone(BufferedImage image)
Create a deep copy of a
BufferedImage. |
static BufferedImage |
createColourSquare(int size,
int colour)
Create a square image of a specific size with a specific solid colour.
|
static BufferedImage |
fromBytes(byte[] bytes)
Deserialise an image previously serialised using
toBytes(RenderedImage) to a BufferedImage. |
static byte[] |
toBytes(RenderedImage image)
Serialise a
RenderedImage (such as a BufferedImage) to a byte array. |
public static byte[] toBytes(RenderedImage image) throws IOException
RenderedImage (such as a BufferedImage) to a byte array.IOExceptionpublic static BufferedImage fromBytes(byte[] bytes) throws IOException
toBytes(RenderedImage) to a BufferedImage.IOExceptionpublic static BufferedImage createColourSquare(int size, int colour)
public static BufferedImage clone(BufferedImage image)
BufferedImage.Copyright © 2011–2025 pepsoft.org. All rights reserved.