←Select platform

ConvertToCGImage Method (LTBitmapHandleConverter_ObjectiveC)

Summary

Converts a BITMAPHANDLE to an CGImageRef.

Syntax

C#
VB
Objective-C
C++
public static CGImageRef ConvertToCGImage(  
   BITMAPHANDLE bitmapHandle, 
   LTConvertToImageOptions options, 
   NSError outError 
) 
Public Shared Function ConvertToCGImage( _ 
   ByVal bitmapHandle As BITMAPHANDLE, _ 
   ByVal options As LTConvertToImageOptions, _ 
   ByVal outError As NSError _ 
) As CGImageRef 
L_INT L_ConvertToCGImage(BITMAPHANDLE *bitmapHandle, CGImageRef *image, const L_ConvertToImageData *data) 
              
public: 
static CGImageRef^ ConvertToCGImage(  
   BITMAPHANDLE^ bitmapHandle, 
   LTConvertToImageOptions^ options, 
   NSError^ outError 
)  

Parameters

bitmapHandle
Pointer to the BITMAPHANDLE to be converted

options
Instance of LTConvertToImageOptions to control the conversion operation.

outError
Pointer to an NSError

Return Value

A CGImageRef representing the converted image.

Remarks

iOS / macOS

Use the ConvertToCGImage> method to convert a BITMAPHANDLE to a CGImage. 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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Converters Assembly