←Select platform

ConvertFromImageAsync Method

Summary

Converts an UIImage/NSImage to an LTRasterImage.

Syntax

C#
VB
Objective-C
C++
public static void ConvertFromImageAsync(  
   LTImage image, 
   LTConvertFromImageOptions options, 
   LTAsyncCompletionHandler completion 
) 
Public Shared Sub ConvertFromImageAsync( _ 
   ByVal image As LTImage, _ 
   ByVal options As LTConvertFromImageOptions, _ 
   ByVal completion As LTAsyncCompletionHandler _ 
)  
iOS: 
+ (void)convertFromImageAsync:(UIImage *)image  
                      options:(LTConvertFromImageOptions)options  
                   completion:(void (^)(LTRasterImage * nullable image, NSError * nullable error))completion 
macOS: 
+ (void)convertFromImageAsync:(NSImage *)image  
                      options:(LTConvertFromImageOptions)options  
                   completion:(void (^)(LTRasterImage * nullable image, NSError * nullable error))completion 
             
public: 
static void ConvertFromImageAsync(  
   LTImage^ image, 
   LTConvertFromImageOptions^ options, 
   LTAsyncCompletionHandler^ completion 
)  

Parameters

image
The UIImage/NSImage 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 ConvertFromImageAsync method to convert either a UIImage or an NSImage 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 UIImage/NSImage. This method returns immediately and does the image conversion asynchronously in a queue

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Converters Assembly