←Select platform

ConvertToImage Method

Summary

Converts an LTRasterImage to an UIImage/NSImage.

Syntax

C#
VB
Objective-C
C++
public static LTImage ConvertToImage(  
   LTRasterImage image, 
   LTConvertToImageOptions options, 
   NSError error 
) 
Public Shared Function ConvertToImage( _ 
   ByVal image As LTRasterImage, _ 
   ByVal options As LTConvertToImageOptions, _ 
   ByVal error As NSError _ 
) As LTImage 
iOS: 
+ (nullable UIImage *)convertToImage:(LTRasterImage *)image  
                             options:(LTConvertToImageOptions)options  
                               error:(NSError **)error 
macOS: 
+ (nullable NSImage *)convertToImage:(LTRasterImage *)image  
                             options:(LTConvertToImageOptions)options  
                               error:(NSError **)error 
              
public: 
static LTImage^ ConvertToImage(  
   LTRasterImage^ image, 
   LTConvertToImageOptions^ options, 
   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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Converters Assembly