Platforms to show: All Mac Windows Linux Cross-Platform

Back to FolderItem class.

FolderItem.ExtractIconMBS(width as integer, ID as integer) as picture   New in 26.4

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS Picture Plugin 26.4 ❌ No ✅ Yes ❌ No ❌ No All
Extracts an icon from a DLL or EXE file.
Example
Var file As FolderItem = SpecialFolder.System.Child("imageres.dll")

If file.Exists Then
Const id = 3
Me.Backdrop = file.ExtractIconMBS(512, id)
Else
Break // file missing
End If

Returns nil in case of error.
Width is the desired width, so we can prefer to load a bigger icon.

Blog Entries

The items on this page are in the following plugins: MBS Picture Plugin.


The biggest plugin in space...