Reading/Writing Image with JIMI

These functions require JIMI.

readImage(InputStream input { , String mimeType } ) or
(URL url { , String mimeType } ) or
(String path { , String mimeType } )

readImage() reads an image from file, URL, or InputStream.

e.g.
im = readImage("test.png")
showImage(im)
writeImage(Image image, String path ) or
(Image image, File file ) or
(Image image, String mimeType, OutputStream output )

writeImage() writes the specified image to a file or an OutputStream.

e.g.
im = readImage("test.png")
writeImage(im, "test.bmp")
rotateImage(Image image, double angle)

shrinkImage(Image image, double value)

enlargeImage(Image image, double value)

grayImage(Image image)

flipImage(Image image)