Package org.pepsoft.util
Class ImageUtils
java.lang.Object
org.pepsoft.util.ImageUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImageclone(BufferedImage image) Create a deep copy of aBufferedImage.static BufferedImagecreateColourSquare(int size, int colour) Create a square image of a specific size with a specific solid colour.static BufferedImagefromBytes(byte[] bytes) Deserialise an image previously serialised usingtoBytes(RenderedImage)to aBufferedImage.static byte[]toBytes(RenderedImage image) Serialise aRenderedImage(such as aBufferedImage) to a byte array.
-
Constructor Details
-
ImageUtils
public ImageUtils()
-
-
Method Details
-
toBytes
Serialise aRenderedImage(such as aBufferedImage) to a byte array.- Throws:
IOException
-
fromBytes
Deserialise an image previously serialised usingtoBytes(RenderedImage)to aBufferedImage.- Throws:
IOException
-
createColourSquare
Create a square image of a specific size with a specific solid colour. -
clone
Create a deep copy of aBufferedImage.
-