Zen API

- Home
- Topics
- Types
- Files

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

  image | Image object.
  x | Column index.
  y | Row index.
  pixel | Destination for pixel copied from the image.

Returns
  Operation status.