Zen API
 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
imageImage object.
pixelsPointer to external pixel buffer.
pixelTypeType of pixel (values types only).
widthImage width, in pixels.
heightImage height, in pixels.
strideImage stride (row size), in bytes.
Returns
Operation status.