gfx:get-image-pixels

(gfx:get-image-pixels image coordinates)


Description:

returns a flat vector of pixel colours from coordinates. for doing any serious image manipulation you should be looking at writing a core image filter!  or at the very least use the objc-bridge


Arguments:

    coordinates -- flat vector of x y coordinates

          image -- image to retrieve pixels from


Returns: vector


Examples:

(gfx:get-image-pixels image (vector 10 10)) => #(0.3 0.25 0.45 1.0)



Back to index