Leadtools.Converters Namespace > RasterImageConverter Class : ConvertToCGImage Method |
public static CGImageRef ConvertToCGImage( LTRasterImage image, LTConvertToImageOptions options, NSError outError )
'Declaration Public Shared Function ConvertToCGImage( _ ByVal image As LTRasterImage, _ ByVal options As LTConvertToImageOptions, _ ByVal outError As NSError _ ) As CGImageRef
'Usage Dim image As LTRasterImage Dim options As LTConvertToImageOptions Dim outError As NSError Dim value As CGImageRef value = RasterImageConverter.ConvertToCGImage(image, options, outError)
public static CGImageRef ConvertToCGImage( LTRasterImage image, LTConvertToImageOptions options, NSError outError )
+(CGImageRef)convertToCGImage:(LTRasterImage*)image options:(LTConvertToImageOptions)options error:(NSError**)outError;
Use the ConvertToCGImage method to convert a LEADTOOLS Leadtools.LTRasterImage into a CGImage.
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 CGImage.