Returns a Pixmap.

(pixmap "image.png")
Options
:dispose
Releases all resources associated with this Pixmap.
:draw-circle^int x, ^int y, ^int radius
Draws a circle outline with the center at x,y and a radius using the current color and stroke width.
:draw-line^int x, ^int y, ^int x2, ^int y2
Draws a line between the given coordinates using the currently set color.
:draw-pixel^int x, ^int y
Draws a pixel at the given location with the current color.
:draw-pixel^int x, ^int y, ^int color
Draws a pixel at the given location with the given color.
:draw-pixmap^Pixmap pixmap, ^int x, ^int y
Draws an area form another Pixmap to this Pixmap.
:draw-pixmap^Pixmap pixmap, ^int x, ^int y, ^int srcx, ^int srcy, ^int src-width, ^int src-height
Draws an area form another Pixmap to this Pixmap.
:draw-pixmap^Pixmap pixmap, ^int srcx, ^int srcy, ^int src-width, ^int src-height, ^int dstx, ^int dsty, ^int dst-width, ^int dst-height
Draws an area form another Pixmap to this Pixmap. This will automatically scale and stretch the source image to the specified target rectangle. Use {@link Pixmap#setFilter(Filter)} to specify the type of filtering to be used (nearest neighbour or bilinear).
:draw-rectangle^int x, ^int y, ^int width, ^int height
Draws a rectangle outline starting at x, y extending by width to the right and by height downwards (y-axis points downwards) using the current color.
:fill
Fills the complete bitmap with the currently set color.
:fill-circle^int x, ^int y, ^int radius
Fills a circle with the center at x,y and a radius using the current color.
:fill-rectangle^int x, ^int y, ^int width, ^int height
Fills a rectangle starting at x, y extending by width to the right and by height downwards (y-axis points downwards) using the current color.
:fill-triangle^int x1, ^int y1, ^int x2, ^int y2, ^int x3, ^int y3
Fills a triangle with vertices at x1,y1 and x2,y2 and x3,y3 using the current color.
:get-format
:get-g-l-format
Returns the OpenGL ES format of this Pixmap. Used as the seventh parameter to {@link GL20#glTexImage2D(int, int, int, int, int, int, int, int, java.nio.Buffer)}.
:get-g-l-internal-format
Returns the OpenGL ES format of this Pixmap. Used as the third parameter to {@link GL20#glTexImage2D(int, int, int, int, int, int, int, int, java.nio.Buffer)}.
:get-g-l-type
Returns the OpenGL ES type of this Pixmap. Used as the eighth parameter to {@link GL20#glTexImage2D(int, int, int, int, int, int, int, int, java.nio.Buffer)}.
:get-height
:get-pixel^int x, ^int y
Returns the 32-bit RGBA8888 value of the pixel at x, y. For Alpha formats the RGB components will be one.
:get-pixels
Returns the direct ByteBuffer holding the pixel data. For the format Alpha each value is encoded as a byte. For the format LuminanceAlpha the luminance is the first byte and the alpha is the second byte of the pixel. For the formats RGB888 and RGBA8888 the color components are stored in a single byte each in the order red, green, blue (alpha). For the formats RGB565 and RGBA4444 the pixel colors are stored in shorts in machine dependent order.
:get-width
:set-color^int color
Sets the color for the following drawing operations
:set-color^float r, ^float g, ^float b, ^float a
Sets the color for the following drawing operations.
:set-color^Color color
Sets the color for the following drawing operations.
Source
(defn pixmap*
  ([^String path]
    (or (u/load-asset path Pixmap)
        (Pixmap. (files! :internal path))))
  ([width height fmt]
    (Pixmap. width height fmt)))
(defmacro pixmap
  [path & options]
  `(let [^Pixmap object# (pixmap* ~path)]
     (u/calls! object# ~@options)))