UtilImageExtractIconFromFile Method
Extracts the icon associated for the specified file.
Note: the maximum size of the returned icon only can be 32x32.
Namespace: DevCase.Core.Media.GraphicsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Icon ExtractIconFromFile(
string filepath
)
Public Shared Function ExtractIconFromFile (
filepath As String
) As Icon
Dim filepath As String
Dim returnValue As Icon
returnValue = UtilImage.ExtractIconFromFile(filepath)
public:
static Icon^ ExtractIconFromFile(
String^ filepath
)
static member ExtractIconFromFile :
filepath : string -> Icon
No code example is currently available or this language may not be supported.
- filepath String
-
The full path to a file.
Icon
The resulting icon.
This is a code example.
No code example is currently available or this language may not be supported.
Dim path As String = "C:\File.ext"
Dim ico As Icon = ExtractIconFromFile(path)
Dim bmp As Bitmap = ico.ToBitmap()
PictureBox1.BackgroundImage = bmp
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.