Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kImage_SetAsT | ( |  | kImage_image,
|  |  | kSize_x,
|  |  | kSize_y,
|  |  | T_value,
|  |  | T
| ) |  |
| related

Sets the value of a pixel.

A debug assertion will be raised if the row or column index arguments are greater than or equal to the current image dimensions, or if the size of the specified item type is not equal to the size of the image pixel type.

Parameters

  kImage_image | Image object.
  kSize_x | Column index.
  kSize_y | Row index.
  T_value | Pixel value.
  T | Pixel type identifier (e.g., kRgb).

Returns
  pixel value.