tjAlloc

Allocate an image buffer for use with TurboJPEG. You should always use this function to allocate the JPEG destination buffer(s) for #tjCompress2() and #tjTransform() unless you are disabling automatic buffer (re)allocation (by setting #TJFLAG_NOREALLOC.)

@param bytes the number of bytes to allocate

@return a pointer to a newly-allocated buffer with the specified number of bytes

@sa tjFree()

extern (C)
ubyte*
tjAlloc
(
int bytes
)

Meta