←Select platform

ConvertToImageAsync Method

Summary

Converts an LTRasterImage to an UIImage/NSImage.

Syntax

C#
VB
Objective-C
C++
public static void ConvertToImageAsync(  
   LTRasterImage image, 
   LTConvertToImageOptions options, 
   LTAsyncCompletionHandler completion 
) 
Public Shared Sub ConvertToImageAsync( _ 
   ByVal image As LTRasterImage, _ 
   ByVal options As LTConvertToImageOptions, _ 
   ByVal completion As LTAsyncCompletionHandler _ 
)  
iOS: 
+ (void)convertToImageAsync:(LTRasterImage *)image  
                    options:(LTConvertToImageOptions)options  
                 completion:(void (^)(UIImage * nullable image, NSError * nullable error))completion 
macOS: 
+ (void)convertToImageAsync:(LTRasterImage *)image  
                    options:(LTConvertToImageOptions)options  
                 completion:(void (^)(NSImage * nullable image, NSError * nullable error))completion 
             
public: 
static void ConvertToImageAsync(  
   LTRasterImage^ image, 
   LTConvertToImageOptions^ options, 
   LTAsyncCompletionHandler^ 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

This method converts a LEADTOOLS LTRasterImage object to either a UIImage or an NSImage 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 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