Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kImage_SetPixel | ( | kImage | image,
|  | kSize | x,
|  | kSize | y,
|  | const void * | pixel
| ) |  |

Sets the value of a pixel.

This method is convenient in some contexts, but is not an efficient method to manipulate 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 | Pointer to pixel value that will be copied into the image.

Returns
  Operation status.