L_INT L_ConvertFromCGImage(CGImageRef image, BITMAPHANDLE *bitmapHandle, const L_ConvertFromImageData *data)
bitmapHandle
Pointer to the bitmap handle which will store the converted image
image
The CGImageRef to be converted
options
An instance of LTConvertFromImageOptions to specify the conversion operation.
outError
Pointer to an NSError
A BOOL. YES if successful, and NO otherwise.
Use the ConvertFromImage method to convert a CGImageRef into either a BITMAPHANDLE. The conversion works by copying the image data over to the new destination. Currently, there is no support for sharing memory between a BITMAPHANDLE and a CGImage.