Leadtools.Converters Namespace > RasterImageConverter Class : ConvertFromImageSource Method |
public static RasterImage ConvertFromImageSource( WinRT_ImageSource image, ConvertFromImageOptions options )
'Declaration Public Shared Function ConvertFromImageSource( _ ByVal image As WinRT_ImageSource, _ ByVal options As ConvertFromImageOptions _ ) As RasterImage
'Usage Dim image As WinRT_ImageSource Dim options As ConvertFromImageOptions Dim value As RasterImage value = RasterImageConverter.ConvertFromImageSource(image, options)
public static RasterImage ConvertFromImageSource( WinRT_ImageSource image, ConvertFromImageOptions options )
public: static RasterImage^ ConvertFromImageSource( WinRT_ImageSource^ image, ConvertFromImageOptions options )
Microsoft WinRT currently offers support for 32-bits/pixels only. So the result from this method will always be a Leadtools.RasterImage object with RasterImage.BitsPerPixel equal to 32.
Use the ConvertToImageSource method to convert a LEADTOOLS Leadtools.RasterImage into a WinRT Windows.UI.Xaml.Media.ImageSource object.
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 Windows.UI.Xaml.Media.ImageSource.
For more information refer to RasterImage and WinRT.
For an example, refer to RasterImageConverter.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2