Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kImage_Attach | ( | kImage | image,
|  | void * | pixels,
|  | kType | pixelType,
|  | kSize | width,
|  | kSize | height,
|  | kSize | stride
| ) |  |

Attaches the image to an external pixel buffer.

Attached pixel buffers are not freed when the image is destroyed.

Parameters

  image | Image object.
  pixels | Pointer to external pixel buffer.
  pixelType | Type of pixel (values types only).
  width | Image width, in pixels.
  height | Image height, in pixels.
  stride | Image stride (row size), in bytes.

Returns
  Operation status.