+ (nullable CGImageRef)convertToCGImage:(LTRasterImage *)image
options:(LTConvertToImageOptions)options
error:(NSError **)error
image
The LTRasterImage to be converted
options
Instance of LTConvertToImageOptions to control the conversion operation.
error
Pointer to an NSError
A CGImageRef representing the converted image.
Use the ConvertToCGImage method to convert a LEADTOOLS LTRasterImage into a CGImage.
The conversion works by copying the image data over to the new destination. Currently, there is no support for sharing memory between an LTRasterImage and an CGImage.