Liking cljdoc? Tell your friends :D

hara.image.awt.io


awt->int-argbclj

(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
raw docstring

lookupclj


providersclj

(providers)
(providers type)

list providers for ImageIO

(providers :reader)

(providers :writer)

list providers for ImageIO

(providers :reader)

(providers :writer)
raw docstring

readclj

(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
raw docstring

supported-formatsclj

(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)
raw docstring

writeclj

(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
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close