FLTK logo

Re: [RFE] STR #2609: shape functions (fl_rectf etc.) support alpha

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.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [RFE] STR #2609: shape functions (fl_rectf etc.) support alpha Matthias Melcher Jan 20, 2023  
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: https://www.fltk.org/str.php?L2609
Version: 1.4-feature


This is a bit by memory, but I will try to get that right. Most low-level
graphics libraries do not support transparency, so we can't easily add this
to FLTK. Also, FLTK tries to do minimal updates in graphics, so
transparencies my multiply, leading to unexpected results. Example: set an
antialiased font for text on a widget that has background without BOX, and
drawing it multiple times will make the text look jaggy.

Images are different, because we have more control over drawing here. 

If you draw into an Fl_GL_Window using FLTK calls, you can have
transparency by setting color table entries with R, G, B, A.


Link: https://www.fltk.org/str.php?L2609
Version: 1.4-feature

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