Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kImage_ConstructEx ( kImage image,
kPixelFormat  format,
kSize  width,
kSize  height,
kAlloc  allocator,
kAlloc  valueAllocator = kNULL,
kMemoryAlignment  valueAlignment = kALIGN_ANY 
)

Constructs a kImage object by pixel format (>= kPIXEL_FORMAT_VOID_TYPE_START).

Parameters
imageReceives the constructed image object.
formatPixel format.
widthImage width.
heightImage height.
allocatorPrimary memory allocator (or kNULL for default).
valueAllocatorData array allocator (or kNULL for default).
valueAlignmentMemory alignment for image data.
Returns
Operation status.