(->bitmap bitmap-width bitmap-height)

Returns a map containing a java.nio.ByteBuffer that can store a bitmap of the given dimensions.

Source

(defn ->bitmap "Returns a map containing a java.nio.ByteBuffer that can store a bitmap of the given dimensions." [bitmap-width bitmap-height] {:data (BufferUtils/createByteBuffer (* bitmap-width bitmap-height)) :width bitmap-width :height bitmap-height})