FLTK logo

STR #2609

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 | SVN ⇄ GIT | Prev | Next ]

STR #2609

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:Core Library
Summary:shape functions (fl_rectf etc.) support alpha
Version:1.4-feature
Created By:elaforge
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 elaforge
23:08 Apr 22, 2011
It would be nice if fl_rectf and friends could accept and RGBA color and draw a transparent shape.  I have emulated this by creating an Fl_RGB_Image and setting the alpha on all pixels, but it's ugly and inefficient.

This is complementary to STR 2583, which is for image level alpha support.
 
 
#2 eastern_strider
01:23 Jan 19, 2012
I also think this feature would be very useful. For instance, it can be used to select icons by dragging a transparent rectangle.

Oguz
 
 
#3 matt
05:57 Jan 20, 2023
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.
 
     

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

 
 

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