Leadtools.Converters Namespace > LTBitmapHandleConverter Class > ConvertFromImage Method : ConvertFromImage(BITMAPHANDLE,CGImageRef,LTConvertFromImageOptions,NSError) Method |
public static bool ConvertFromImage( BITMAPHANDLE bitmapHandle, CGImageRef image, LTConvertFromImageOptions options, NSError outError )
'Declaration Public Overloads Shared Function ConvertFromImage( _ ByVal bitmapHandle As BITMAPHANDLE, _ ByVal image As CGImageRef, _ ByVal options As LTConvertFromImageOptions, _ ByVal outError As NSError _ ) As Boolean
'Usage Dim bitmapHandle As BITMAPHANDLE Dim image As CGImageRef Dim options As LTConvertFromImageOptions Dim outError As NSError Dim value As Boolean value = LTBitmapHandleConverter.ConvertFromImage(bitmapHandle, image, options, outError)
public static bool ConvertFromImage( BITMAPHANDLE bitmapHandle, CGImageRef image, LTConvertFromImageOptions options, NSError outError )
+(BOOL)convertFromCGImage:(BITMAPHANDLE*)bitmapHandle image:(CGImageRef)image options:(LTConvertFromImageOptions)options error:(NSError**)outError;
function Leadtools.Converters.LTBitmapHandleConverter_ObjectiveC.ConvertFromImage(BITMAPHANDLE,CGImageRef,LTConvertFromImageOptions,NSError)( bitmapHandle , image , options , outError )
public: static bool ConvertFromImage( BITMAPHANDLE^ bitmapHandle, CGImageRef^ image, LTConvertFromImageOptions^ options, NSError^ outError )
Use the ConvertFromImage method to convert a CGImageRef into either a BITMAPHANDLE. The conversion works by copying the image data over to the new destination. Currently, there is no support for sharing memory between a BITMAPHANDLE and a CGImage.