FLTK logo

Re: [fltk/fltk] Fl_Image_Reader::read_byte() does not return EOF with file reads (#271)

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 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Fl_Image_Reader::read_byte() does not return EOF with file reads (#271) Albrecht Schlosser Sep 26, 2021  
 

FTR: I found the culprit in the image mentioned above (resize.gif) and our FLTK decoder. The problem is that ColorMapSize == 2 (i.e. 0, 1) but the transparent color index is set to 2, i.e. beyond the existing colormap. Our current code could not deal with this. My new code extends the colormap and now it works. :-)

Here is an image of the resultant display in FLTK with:

  • window background: light yellow
  • image box background: pink
  • hence transparent pixels are pink

resize_fltk_fixed

Next step: clean up code and commit...


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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'.