Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
#define kImage_SetPixelT (   kImage_image,
  kSize_x,
  kSize_y,
  TPtr_pixel 
)
related

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_RowAtT to directly access the pixel buffer.

A debug assertion will be raised if the size of the specified pixel type is not equal to the size of the image pixel type.

Parameters
kImage_imageImage object.
kSize_xColumn index.
kSize_yRow index.
TPtr_pixelStrongly-typed pointer to pixel value that will be copied into the image.
Returns
Operation status.