Cocktail Help Reference
GetImageFromPath Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > PathToImageSourceConverter Class : GetImageFromPath Method



filePath

Glossary Item Box

Convert an unfiltered string filepath to an System.Windows.Media.Imaging.BitmapImage.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetImageFromPath( _
   ByVal filePath As String _
) As BitmapImage
Visual Basic (Usage)Copy Code
Dim filePath As String
Dim value As BitmapImage
 
value = PathToImageSourceConverter.GetImageFromPath(filePath)
C# 
public static BitmapImage GetImageFromPath( 
   string filePath
)
C++/CLI 
public:
static BitmapImage^ GetImageFromPath( 
   String^ filePath
) 

Parameters

filePath

Remarks

Gets the System.Windows.Media.ImageSource from the raw without using the PathFilter.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.