←Select platform

ConvertToImage Method

Summary

Converts an LTRasterImage to an UIImage/NSImage.

Syntax
Objective-C
iOS: 
+ (nullable UIImage *)convertToImage:(LTRasterImage *)image  
                             options:(LTConvertToImageOptions)options  
                               error:(NSError **)error 
macOS: 
+ (nullable NSImage *)convertToImage:(LTRasterImage *)image  
                             options:(LTConvertToImageOptions)options  
                               error:(NSError **)error 

Parameters

image
The LTRasterImage to be converted

options
Instance of LTConvertToImageOptions to control the conversion operation.

error
Pointer to an NSError

Return Value

An UIImage/NSImage object representing the converted image.

Remarks

iOS / macOS

This method converts a LEADTOOLS LTRasterImage object to either a UIImage or an NSImage (**see note below).

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.

Requirements

Target Platforms

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

Leadtools.Converters Assembly