Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kImage_Pixel ( kImage  image,
kSize  x,
kSize  y,
void *  pixel 
)

Gets the value of a pixel.

This method is convenient in some contexts, but is not an efficient method to access many pixels. In performance-critical code, use kImage_RowAt to directly access the pixel buffer.

Parameters
imageImage object.
xColumn index.
yRow index.
pixelDestination for pixel copied from the image.
Returns
Operation status.