FLTK logo

STR #3504

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 djcj
09:51 Jan 03, 2019
ico_to_rgb.hpp
3k
 
 
#2 djcj
09:51 Jan 03, 2019
ico_to_rgb.cpp
7k
 
 
#3 djcj
15:49 Jan 03, 2019
Fl_ICO_Image.cxx
9k
 
 
#4 djcj
15:50 Jan 03, 2019
Fl_ICO_Image.H
0k
 
 
#5 djcj
09:56 Jan 04, 2019
Fl_ICO_Image_v2.cxx
10k
 
 
#6 djcj
09:56 Jan 04, 2019
Fl_ICO_Image_v2.H
0k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.