←Select platform

ConvertFromCGImage Method (LTBitmapHandleConverter_ObjectiveC)

Summary

Converts a CGImageRef to a BITMAPHANDLE.

Syntax
Objective-C
L_INT L_ConvertFromCGImage(CGImageRef image, BITMAPHANDLE *bitmapHandle, const L_ConvertFromImageData *data) 

Parameters

bitmapHandle
Pointer to the bitmap handle which will store the converted image

image
The CGImageRef to be converted

options
An instance of LTConvertFromImageOptions to specify the conversion operation.

outError
Pointer to an NSError

Return Value

A BOOL. YES if successful, and NO otherwise.

Remarks

iOS / macOS

Use the ConvertFromImage method to convert a CGImageRef into either a BITMAPHANDLE. The conversion works by copying the image data over to the new destination. Currently, there is no support for sharing memory between a BITMAPHANDLE and a CGImage.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Converters Assembly