STR #3467

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 | Post Text | Post File | Prev | Next ]

STR #3467

Application:FLTK Library
Status:5 - New
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:Image Support
Summary:create Fl_File_Icon from embedded image data
Created By:djcj
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size top right image
#1 djcj
02:11 Apr 29, 2018
#2 djcj
02:11 Apr 29, 2018
#3 djcj
02:11 Apr 29, 2018
#4 manolo
08:02 Apr 30, 2018
#5 manolo
08:02 Apr 30, 2018
bottom left image   bottom right image

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
#1 djcj
02:11 Apr 29, 2018
A patch to enable creating an Fl_File_Icon from a PNG/JPEG char array or an Fl_Shared_Image pointer.  
#2 djcj
02:13 Apr 29, 2018
I've attached an unfinished custom file selection browser for which I wanted this feature. Icons are from Tango, so they're Public Domain.  
#3 manolo
08:08 Apr 30, 2018
That looks like a very interesting extension proposal.

I would like to suggest a small modification:
instead of adding 2 new member functions load_png() and load_jpeg()
add load_rgb_image(Fl_RGB_Image*).

That will cover load_png and load_jpeg since these images are
derived from class Fl_RGB_Image.
That will also cover other sources of Fl_RGB_Image's.
One source that may be of interest is the new Fl_SVG_Image.

I have put that in attached Fl_FileIconV2.patch,
and give a usage example with attached exampleV2.cpp,
slightly modified from example.cpp
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]


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