FLTK logo

[fltk/fltk] Compatibility for Fl_PNG_Image, 4/8bit + alpha channel (#234)

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 ]

[fltk/fltk] Compatibility for Fl_PNG_Image, 4/8bit + alpha channel (#234) Raphael Kim May 22, 2021  
 

Dear, FLTK developers.

I've been found an issue for Fl_PNG_Image cannot read some PNG files of this condition with @fire-eggs with this issue ( rageworx/fl_imgtk#16 )

  • If PNG is grayscale image up to 8bit depth with has alpha channel ( transparency bits ),
  • Fl_PNG_Image recognized this image as 2 depth ( as RGB555, or RGB565 ).

So I tested with my own clonned Fl_PNG_Image to solve this issue here.

If alpha channel existed, array converting to RGBA, then process to each graphics driver.
My Fl_PNG_Image may not the best choice, but it should be make it better to load PNG images.

Regards, Raph.K.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

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