Leadtools.Converters Namespace > RasterImageConverter Class : ConvertToImage Method |
public static LTImage ConvertToImage( LTRasterImage image, LTConvertToImageOptions options, NSError outError )
'Declaration Public Shared Function ConvertToImage( _ ByVal image As LTRasterImage, _ ByVal options As LTConvertToImageOptions, _ ByVal outError As NSError _ ) As LTImage
'Usage Dim image As LTRasterImage Dim options As LTConvertToImageOptions Dim outError As NSError Dim value As LTImage value = RasterImageConverter.ConvertToImage(image, options, outError)
public static LTImage ConvertToImage( LTRasterImage image, LTConvertToImageOptions options, NSError outError )
+(LTImage*)convertToImage:(LTRasterImage*)image options:(LTConvertToImageOptions)options error:(NSError**)outError;
This method converts a LEADTOOLS Leadtools.LTRasterImage object to either a UIImage or an NSImage (**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 an Leadtools.LTRasterImage and an LTImage.
Note: The LTImage macro will either be a UIImage (iOS) or NSImage (OS X) depending on the current platform.