←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 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.