←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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Converters Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.