Leadtools.Converters Namespace > RasterImageConverter Class : ConvertFromImage Method |
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;
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.