Leadtools.Converters assembly

ConvertFromImage Method (RasterImageConverter)

Show in webframe







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

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

Parameters

image
The LTImage 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 ConvertFromImage method to convert either a UIImage or an NSImage into a LEADTOOLS Leadtools.LTRasterImage (**see note below). 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 LTImage.

Note: The LTImage macro will either be a UIImage (iOS) or NSImage (OS X) depending on the current platform.

Requirements

Target Platforms

See Also

Reference

RasterImageConverter Class
RasterImageConverter Members

 

 


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