Note
On non-Windows platforms this method always returns an empty array.
public static Icon[] FromFile(
string fileName,
SystemIconSize size
)Public Shared Function FromFile (
fileName As String,
size As SystemIconSize
) As Icon()public:
static array<Icon^>^ FromFile(
String^ fileName,
SystemIconSize size
)static member FromFile :
fileName : string *
size : SystemIconSize -> Icon[] The actual resolution represented by size depends on the DPI of the main display. To retrieve all actual icon images use the FromFile(String) overload instead, and then you can extract the exact resolution by the IconExtensions.ExtractIcon extension method.
If fileName refers to an icon file use the Icon(String) constructor instead.
The images of an Icon can be extracted by the IconExtensions.ExtractBitmaps methods.