Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leapmotion/iconextractor
A simple project for extracting the main icon from a Windows PE
https://github.com/leapmotion/iconextractor
Last synced: 2 days ago
JSON representation
A simple project for extracting the main icon from a Windows PE
- Host: GitHub
- URL: https://github.com/leapmotion/iconextractor
- Owner: leapmotion
- Created: 2013-05-14T20:40:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-19T02:42:11.000Z (about 10 years ago)
- Last Synced: 2024-04-14T22:44:17.634Z (7 months ago)
- Language: C++
- Size: 192 KB
- Stars: 4
- Watchers: 30
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
IconExtractor
=============A simple project for extracting the main icon from a Windows PE. This project works with 32-bit or 64-bit binaries, and can extract embedded ICOs from an image, or an embedded PNG if one exists. The caller may specify size constraints of the desired image on the command line.
Details of Operation
-------------
If an ICO is targeted for extraction, the original color table and mask are combined into a 32bpp ARGB image and stored on disk as a PNG. 32bpp ICOs are dynamically analyzed to determine whether they have alpha channel information, and if it exists, this information is properly honored. The ICO is also adjusted by its paired transparency bitmask so that pixels reported as transparent by the bitmask are properly rendered as transparent in the PNG.When the caller has selected an embedded Vista-style PNG for extraction, the PNG is pulled from the executable and written directly to disk. No recompression, interpretation, or extensive checking is done to verify the integrity of the PNG beyond validation of PNG required headers.