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