←Select platform

ConvertToCGImageAsync Method

Summary
Converts an LTRasterImage to an CGImageRef.
Syntax
Objective-C
+ (void)convertToCGImageAsync:(LTRasterImage *)image  
                      options:(LTConvertToImageOptions)options  
                   completion:(void (^)(CGImageRef __nullable image, NSError * __nullable error))completion 

Parameters

image
The LTRasterImage to be converted

options
Instance of LTConvertToImageOptions to control the conversion operation.

completion
Handler that fires after conversion with the converted image if successful, or an error object if the conversion failed.

Remarks

iOS / macOS

Use the ConvertToCGImageAsync method to convert a LEADTOOLS LTRasterImage into a CGImage asynchronously.

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. This method returns immediately and does the image conversion asynchronously in a queue

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Converters Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.