Leadtools.Converters assembly

ConvertFromImage(BITMAPHANDLE,CGImageRef,LTConvertFromImageOptions,NSError) Method

Show in webframe







Pointer to the bitmap handle which will store the converted image
The CGImageRef to be converted
An instance of LTConvertFromImageOptions to specify the conversion operation.
Pointer to an NSError
Converts a CGImageRef to a BITMAPHANDLE.
Syntax
public static bool ConvertFromImage( 
   BITMAPHANDLE bitmapHandle,
   CGImageRef image,
   LTConvertFromImageOptions options,
   NSError outError
)
'Declaration
 
Public Overloads Shared Function ConvertFromImage( _
   ByVal bitmapHandle As BITMAPHANDLE, _
   ByVal image As CGImageRef, _
   ByVal options As LTConvertFromImageOptions, _
   ByVal outError As NSError _
) As Boolean
'Usage
 
Dim bitmapHandle As BITMAPHANDLE
Dim image As CGImageRef
Dim options As LTConvertFromImageOptions
Dim outError As NSError
Dim value As Boolean
 
value = LTBitmapHandleConverter.ConvertFromImage(bitmapHandle, image, options, outError)
public static bool ConvertFromImage( 
   BITMAPHANDLE bitmapHandle,
   CGImageRef image,
   LTConvertFromImageOptions options,
   NSError outError
)
+(BOOL)convertFromCGImage:(BITMAPHANDLE*)bitmapHandle 
                    image:(CGImageRef)image 
                  options:(LTConvertFromImageOptions)options 
                    error:(NSError**)outError;
             

            
 function Leadtools.Converters.LTBitmapHandleConverter_ObjectiveC.ConvertFromImage(BITMAPHANDLE,CGImageRef,LTConvertFromImageOptions,NSError)( 
   bitmapHandle ,
   image ,
   options ,
   outError 
)
public:
static bool ConvertFromImage( 
   BITMAPHANDLE^ bitmapHandle,
   CGImageRef^ image,
   LTConvertFromImageOptions^ options,
   NSError^ outError
) 

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/OS X

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

See Also

Reference

LTBitmapHandleConverter Class
LTBitmapHandleConverter Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.