| [ Return to Bugs & Features | SVN ⇄ GIT ]
STR #3504
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 1 - Request for Enhancement, e.g. asking for a feature |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Image Support |
Summary: | read Windows icon file (.ico) |
Version: | 1.4-feature |
Created By: | djcj |
Assigned To: | matt |
Fix Version: | 1.4.0 |
Fix Commit: | 36cd0a397c6d8fee7ffc5b59d607ead523226e53 |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | djcj 07:18 Dec 29, 2018 |
| Support for reading Windows icon files (.ico) could be useful, something like Fl_ICO_Image(). From what I understand .ico files contain 1 or more images, either in raw bitmap format or as PNG (including PNG file header), so no additional library would be needed for decoding.
Format description: http://www.daubnet.com/en/file-format-ico
I found this tiny C++ decoder, but it's either not working right or I'm using it incorrectly: http://vitiy.info/manual-decoding-of-ico-file-format-small-c-cross-platform-decoder-lib/ | |
|
#2 | djcj 09:54 Jan 03, 2019 |
| I have added a function based on Victor Laskin's code that loads a Windows icon file and returns Fl_RGB_Image*. PNG resources inside icon files are handled by Fl_PNG_Image(). It's working for me so far. Feel free to turn this into a real Fl_ICO_Image class. | |
|
#3 | djcj 15:50 Jan 03, 2019 |
| I've added a first draft for a Fl_ICO_Image class. | |
|
#4 | djcj 09:58 Jan 04, 2019 |
| I have uploaded a v2 with some improvements. I can also confirm that 2 color, 16 color, 256 color and 24 bit icons are working (you can i.e. use Gimp to create them for testing). | |
|
#5 | matt 07:41 Jan 20, 2023 |
| Fixed in Git repository. | |
[ Return to Bugs & Features ]
|
| |