(awt->int-argb image)
converts an indexed or custom image into and int-argb image
(-> (ImageIO/read (java.io.File. "resources/data/circle-10.gif")) awt->int-argb) ;;#image.awt[10 10]{:model :int-argb} => java.awt.image.BufferedImage
converts an indexed or custom image into and int-argb image (-> (ImageIO/read (java.io.File. "resources/data/circle-10.gif")) awt->int-argb) ;;#image.awt[10 10]{:model :int-argb} => java.awt.image.BufferedImage
(providers)
(providers type)
list providers for ImageIO
(providers :reader)
(providers :writer)
list providers for ImageIO (providers :reader) (providers :writer)
(read input)
loads a BufferedImage from input
(read "resources/data/circle-100.png") ;; #image.awt[100 100]{:model :4-byte-abgr} => java.awt.image.BufferedImage
loads a BufferedImage from input (read "resources/data/circle-100.png") ;; #image.awt[100 100]{:model :4-byte-abgr} => java.awt.image.BufferedImage
(supported-formats)
(supported-formats type)
list supported formats for ImageIO
(supported-formats :reader) => (contains ["BMP" "GIF" "JPEG" "JPG" "PNG" "WBMP"] :in-any-order)
list supported formats for ImageIO (supported-formats :reader) => (contains ["BMP" "GIF" "JPEG" "JPG" "PNG" "WBMP"] :in-any-order)
(write img output opts)
saves a BufferedImage to file or stream
(-> (read "resources/data/circle-100.png") (write "JPG" "resources/data/circle-100.jpg")) => true
saves a BufferedImage to file or stream (-> (read "resources/data/circle-100.png") (write "JPG" "resources/data/circle-100.jpg")) => true
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close