std.image.awt.io
awt->int-argb
added in 3.0
(awt->int-argb image)converts an indexed or custom image into and int-argb image
(-> (ImageIO/read (java.io.File. “test-data/std.image/circle-10.gif”)) awt->int-argb) ;;#image.awt10 10{:model :int-argb} => java.awt.image.BufferedImage
providers
added in 3.0
(providers)(providers type)list providers for ImageIO
(providers :reader)
(providers :writer)
read
added in 3.0
(read input)(read input model)loads a BufferedImage from input
(read “test-data/std.image/circle-100.png”) ;; #image.awt100 100{:model :4-byte-abgr} => java.awt.image.BufferedImage
supported-formats
added in 3.0
(supported-formats)(supported-formats type)list supported formats for ImageIO
(supported-formats :reader) => (contains “BMP” “GIF” “JPEG” “JPG” “PNG” “WBMP” :in-any-order :gaps-ok)
write
added in 3.0
(write img output opts)saves a BufferedImage to file or stream
(-> (read “test-data/std.image/circle-100.png”) (write “test-data/std.image/circle-100a.png” {:format “PNG”})) => true