←Select platform

ConvertToCGImage Method (RasterImageConverter)

Summary
Converts an LTRasterImage to an CGImageRef.
Syntax
Objective-C
+ (nullable CGImageRef)convertToCGImage:(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

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