←Select platform

ConvertFromImage Method

Summary

Converts an UIImage/NSImage to an LTRasterImage.

Syntax

C#
VB
Objective-C
C++
public static LTRasterImage ConvertFromImage(  
   LTImage image, 
   LTConvertFromImageOptions options, 
   NSError error 
) 
Public Shared Function ConvertFromImage( _ 
   ByVal image As LTImage, _ 
   ByVal options As LTConvertFromImageOptions, _ 
   ByVal error As NSError _ 
) As LTRasterImage 
iOS: 
+ (nullable LTRasterImage *)convertFromImage:(UIImage *)image  
                                     options:(LTConvertFromImageOptions)options  
                                       error:(NSError **)error 
macOS: 
+ (nullable LTRasterImage *)convertFromImage:(NSImage *)image  
                                     options:(LTConvertFromImageOptions)options  
                                       error:(NSError **)error 
              
public: 
static LTRasterImage^ ConvertFromImage(  
   LTImage^ image, 
   LTConvertFromImageOptions^ options, 
   NSError^ error 
)  

Parameters

image
The UIImage/NSImage to be converted

options
Instance of LTConvertFromImageOptions to control the conversion operation.

error
Pointer to an NSError

Return Value

A LTRasterImage object representing the converted image.

Remarks

iOS / macOS

Use the ConvertFromImage method to convert either a UIImage or an NSImage into a LEADTOOLS LTRasterImage (**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 a LTRasterImage and a 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