Leadtools.Converters assembly

ConvertFromCGImage Method

Show in webframe







The CGImageRef to be converted
Instance of LTConvertFromImageOptions to control the conversion operation.
Pointer to an NSError
Converts a CGImageRef to a LTRasterImage.
Syntax
public static LTRasterImage ConvertFromCGImage( 
   CGImageRef image,
   LTConvertFromImageOptions options,
   NSError outError
)
'Declaration
 
Public Shared Function ConvertFromCGImage( _
   ByVal image As CGImageRef, _
   ByVal options As LTConvertFromImageOptions, _
   ByVal outError As NSError _
) As LTRasterImage
'Usage
 
Dim image As CGImageRef
Dim options As LTConvertFromImageOptions
Dim outError As NSError
Dim value As LTRasterImage
 
value = RasterImageConverter.ConvertFromCGImage(image, options, outError)
public static LTRasterImage ConvertFromCGImage( 
   CGImageRef image,
   LTConvertFromImageOptions options,
   NSError outError
)
+(LTRasterImage*)convertFromCGImage:(CGImageRef)image 
                            options:(LTConvertFromImageOptions)options 
                              error:(NSError**)outError;
            

            
 function Leadtools.Converters.RasterImageConverter.ConvertFromCGImage( 
   image ,
   options ,
   outError 
)
public:
static LTRasterImage^ ConvertFromCGImage( 
   CGImageRef^ image,
   LTConvertFromImageOptions^ options,
   NSError^ outError
) 

Parameters

image
The CGImageRef to be converted
options
Instance of LTConvertFromImageOptions to control the conversion operation.
outError
Pointer to an NSError

Return Value

A LTRasterImage object representing the converted image.
Remarks

iOS/OS X

Use the ConvertFromCGImage method to convert a CGImage into a LEADTOOLS Leadtools.LTRasterImage. The conversion works by copying the image data over to the new destination. Currently, there is no support for sharing memory between a Leadtools.RasterImage and a CGImage.

Requirements

Target Platforms

See Also

Reference

RasterImageConverter Class
RasterImageConverter Members

 

 


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