Leadtools.Converters assembly

ConvertFromImage(BITMAPHANDLE,LTImage,LTConvertFromImageOptions,NSError) Method

Show in webframe







Pointer to the bitmap handle which will store the converted image
The LTImage to be converted
An instance of LTConvertFromImageOptions to specify the conversion operation.
A pointer to an NSError
Converts a LTImage to a BITMAPHANDLE.
Syntax
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
) 

Parameters

bitmapHandle
Pointer to the bitmap handle which will store the converted image
image
The LTImage to be converted
options
An instance of LTConvertFromImageOptions to specify the conversion operation.
outError
A pointer to an NSError

Return Value

A BOOL. YES if successful, and NO otherwise.
Remarks

iOS/OS X

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.

Requirements

Target Platforms

See Also

Reference

LTBitmapHandleConverter Class
LTBitmapHandleConverter Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.