Leadtools.Converters Namespace > LTBitmapHandleConverter Class > ConvertFromImage Method : ConvertFromImage(BITMAPHANDLE,LTImage,LTConvertFromImageOptions,NSError) Method |
public static bool ConvertFromImage( BITMAPHANDLE bitmapHandle, LTImage image, LTConvertFromImageOptions options, NSError outError )
'Declaration Public Overloads Shared Function ConvertFromImage( _ ByVal bitmapHandle As BITMAPHANDLE, _ ByVal image As LTImage, _ ByVal options As LTConvertFromImageOptions, _ ByVal outError As NSError _ ) As Boolean
'Usage Dim bitmapHandle As BITMAPHANDLE Dim image As LTImage 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, LTImage image, LTConvertFromImageOptions options, NSError outError )
+(BOOL)convertFromImage:(BITMAPHANDLE*)bitmapHandle image:(LTImage*)image options:(LTConvertFromImageOptions)options error:(NSError**)outError;
function Leadtools.Converters.LTBitmapHandleConverter_ObjectiveC.ConvertFromImage(BITMAPHANDLE,LTImage,LTConvertFromImageOptions,NSError)( bitmapHandle , image , options , outError )
public: static bool ConvertFromImage( BITMAPHANDLE^ bitmapHandle, LTImage^ image, LTConvertFromImageOptions^ options, NSError^ outError )
Use the ConvertFromImage method to convert either a UIImage or an NSImage into a BITMAPHANDLE (**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 LTImage and a BITMAPHANDLE.
Note: The LTImage macro will either be a UIImage (iOS) or NSImage (OS X) depending on the current platform.