←Select platform

ConvertToCGImage Method (RasterImageConverter)

Summary

Converts an LTRasterImage to an CGImageRef.

Syntax

C#
VB
Objective-C
C++
public static CGImageRef ConvertToCGImage(  
   LTRasterImage image, 
   LTConvertToImageOptions options, 
   NSError error 
) 
Public Shared Function ConvertToCGImage( _ 
   ByVal image As LTRasterImage, _ 
   ByVal options As LTConvertToImageOptions, _ 
   ByVal error As NSError _ 
) As CGImageRef 
+ (nullable CGImageRef)convertToCGImage:(LTRasterImage *)image  
                                options:(LTConvertToImageOptions)options  
                                  error:(NSError **)error 
              
public: 
static CGImageRef^ ConvertToCGImage(  
   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

A CGImageRef representing the converted image.

Remarks

iOS / macOS

Use the ConvertToCGImage method to convert a LEADTOOLS LTRasterImage into a CGImage.

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