PalmEmanuel / IconExtract

Library implementation of Lluis Franco's icon extraction code at https://www.lluisfranco.com/extract-icons-win32/.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IconExtract

Quick and dirty implementation of the code at https://www.lluisfranco.com/extract-icons-win32/ to extract icons as images from files.

# Example code
dotnet publish
Import-Module .\IconHelper\bin\Debug\net7.0\IconHelper.dll
$Bitmap = [IconHelper.IconHelper]::GetFileImageFromPath("C:\Temp\MyPowerShellModule.psd1", [IconHelper.IconHelper+IconSizeEnum]::ExtraLargeIcon)
$Bitmap.Save('C:\Temp\Psd1Icon.png', [System.Drawing.Imaging.ImageFormat]::Png)

About

Library implementation of Lluis Franco's icon extraction code at https://www.lluisfranco.com/extract-icons-win32/.


Languages

Language:C# 100.0%