Re: [fltk.general] Alpha blending with Fl_PNG_Image

2013-03-18 Thread Albrecht Schlosser
Am 17.03.2013 22:17, Chris Russ wrote: Upon further investigation, the documentation says that the only way to get transparency (and 100% transparency at that) is with an Fl_Pixmap (say, a GIF file), and that is definitely NOT RGB. Even so, would that work where this fails, albeit without

Re: [fltk.general] Alpha blending with Fl_PNG_Image

2013-03-17 Thread Albrecht Schlosser
On 16.03.2013 03:21, Chris Russ wrote: I've been working on a widget that can show images zoomed in and out at arbitrary percentages, and that part works. Now, in the middle of my ::draw() function I want to overlay some RGBA PNG images -- these have transparency where I'd like the

Re: [fltk.general] Alpha blending with Fl_PNG_Image

2013-03-17 Thread Chris Russ
As Ian and Greg pointed out already, alpha blending works with FLTK 1.3 (and even with 1.1), but there are some restrictions. Greg's method works like a champ and I actually found it about 1/2 hour after I posted this in the forum. Thanks! Upon further investigation, the documentation

Re: [fltk.general] Alpha blending with Fl_PNG_Image

2013-03-16 Thread Ian MacArthur
On 16 Mar 2013, at 02:21, Chris Russ wrote: I've been working on a widget that can show images zoomed in and out at arbitrary percentages, and that part works. Now, in the middle of my ::draw() function I want to overlay some RGBA PNG images -- these have transparency where I'd like the

Re: [fltk.general] Alpha blending with Fl_PNG_Image

2013-03-16 Thread Ian MacArthur
Correction: I hinted that the unittest_images demo did not work right on X11, but I just fired up a VM to check and it worked fine for me (Ubuntu-12.10 VM) with fltk-1.3.x-r9835 ___ fltk mailing list fltk@easysw.com

Re: [fltk.general] Alpha blending with Fl_PNG_Image

2013-03-16 Thread Greg Ercolano
On 03/15/13 19:21, Chris Russ wrote: But alpha blending isn't happening. This technique works for me: http://seriss.com/people/erco/fltk/#AlphaBlend ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

[fltk.general] Alpha blending with Fl_PNG_Image

2013-03-15 Thread Chris Russ
I've been working on a widget that can show images zoomed in and out at arbitrary percentages, and that part works. Now, in the middle of my ::draw() function I want to overlay some RGBA PNG images -- these have transparency where I'd like the underlying image to show up. I can make the