←Select platform

ConvertFromCGImageAsync Method

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

Parameters

image
The CGImageRef to be converted

options
Instance of LTConvertFromImageOptions 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 ConvertFromCGImageAsync method to convert a CGImage into a LEADTOOLS LTRasterImage asynchronously. The conversion works by copying the image data over to the new destination. Currently, there is no support for sharing memory between a LTRasterImage and a CGImage. This method returns immediately and does the image conversion asynchronously in a queue

Requirements

Target Platforms

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

Leadtools.Converters Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.