←Select platform

ConvertFromCGImage Method (RasterImageConverter)

Summary

Converts a CGImageRef to a LTRasterImage.

Syntax

C#
VB
Objective-C
C++
public static LTRasterImage ConvertFromCGImage(  
   CGImageRef image, 
   LTConvertFromImageOptions options, 
   NSError error 
) 
Public Shared Function ConvertFromCGImage( _ 
   ByVal image As CGImageRef, _ 
   ByVal options As LTConvertFromImageOptions, _ 
   ByVal error As NSError _ 
) As LTRasterImage 
+ (nullable LTRasterImage *)convertFromCGImage:(CGImageRef)image  
                                       options:(LTConvertFromImageOptions)options  
                                         error:(NSError **)error 
             
public: 
static LTRasterImage^ ConvertFromCGImage(  
   CGImageRef^ image, 
   LTConvertFromImageOptions^ options, 
   NSError^ error 
)  

Parameters

image
The CGImageRef 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 ConvertFromCGImage method to convert a CGImage into a LEADTOOLS LTRasterImage. The conversion works by copying the image data over to the new destination. Currently, there is no support for sharing memory between a RasterImage and a CGImage.

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