Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-18 Thread Hezekiah M. Carty
On Thu, Mar 18, 2010 at 7:31 PM, Alan W. Irwin wrote: > On 2010-03-18 17:55-0400 Hezekiah M. Carty wrote: > >> On Thu, Mar 18, 2010 at 5:34 PM, Alan W. Irwin >> wrote: >>> >>> On 2010-03-18 16:26-0400 Hezekiah M. Carty wrote: >>> [...] From what I have read so far, having nicely wi

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-18 Thread David MacMahon
Hi, Hez, On Mar 18, 2010, at 21:16 , Hezekiah M. Carty wrote: > The checkerboard background seems to be a semi-standard approach for > viewing transparent images (Gimp uses something similar). I'm not > sure it is a good idea for our interactive devices though, as it makes > it very difficult to

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-18 Thread Alan W. Irwin
On 2010-03-18 20:13-0400 Hazen Babcock wrote: > So, while I agree that we should support this feature I don't think it > is going to be that cool for most linux users for a while yet. Although, I don't have any of the transparency troubles you mentioned for your X server, I do have some mediocre

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-18 Thread Hazen Babcock
Alan W. Irwin wrote: > > For my two X servers > > display -immutable test.png.2 > > gives me (a), i.e., a semi-transparent view where I can see the desktop > underneath the image. This is slightly off topic, but this effect really doesn't seem to work that well on Gnome, at least for me. This

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-18 Thread Alan W. Irwin
On 2010-03-18 17:55-0400 Hezekiah M. Carty wrote: > On Thu, Mar 18, 2010 at 5:34 PM, Alan W. Irwin > wrote: >> On 2010-03-18 16:26-0400 Hezekiah M. Carty wrote: >> >>> >>> [...] From what I have read so >>> far, having nicely window-manager independent transparent backgrounds >>> for the xcairo (

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-18 Thread Hezekiah M. Carty
On Thu, Mar 18, 2010 at 5:34 PM, Alan W. Irwin wrote: > On 2010-03-18 16:26-0400 Hezekiah M. Carty wrote: > >> >> [...] From what I have read so >> far, having nicely window-manager independent transparent backgrounds >> for the xcairo (and xwin and possiblt qtwidget) devices would require >> pull

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-18 Thread Alan W. Irwin
On 2010-03-18 16:26-0400 Hezekiah M. Carty wrote: > The fix for pngcairo is fairly straightforward. The pngcairo device > was using an RGB surface rather than an ARGB surface, so the Cairo > drawing routines were treating it like it does not support > transparency (which it didn't). Changing the

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-18 Thread Hezekiah M. Carty
On Mon, Mar 15, 2010 at 10:15 PM, Alan W. Irwin wrote: > On 2010-03-15 20:38-0400 Hazen Babcock wrote: > >> The problem is that we currently do not allow any choices. The cairo driver >> is explicitly starting with a non-transparent white background. It is not as >> clear to me exactly what the Qt

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-15 Thread Alan W. Irwin
On 2010-03-15 21:44-0700 David MacMahon wrote: > I'm no expert on the PLplot devices, but my understanding is that the xcairo > device is a cairo "widget" or "surface" drawn in a "regular" X window that > has its own background. If that's the case, then perhaps we would need to > create the wi

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-15 Thread David MacMahon
Hi, Alan, On Mar 15, 2010, at 17:49 , Alan W. Irwin wrote: > On 2010-03-15 15:49-0700 David MacMahon wrote: > >> Using a very recent ImageMagick (6.6.0), "display" gives me the >> checkerboard background without the "-immutable" option and a >> black background with that option when looking a

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-15 Thread Alan W. Irwin
On 2010-03-15 20:38-0400 Hazen Babcock wrote: > The problem is that we currently do not allow any choices. The cairo driver > is explicitly starting with a non-transparent white background. It is not as > clear to me exactly what the Qt driver is doing when it starts a new page, > though I don'

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-15 Thread Alan W. Irwin
On 2010-03-15 15:49-0700 David MacMahon wrote: > > On Mar 15, 2010, at 14:32 , Alan W. Irwin wrote: > >> Then "display -immutable test_transparent.png" >> >> really does show the desktop underneath the plot which indeed is a >> really cool-looking effect. > > Using a very recent ImageMagick (6.6.

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-15 Thread Hazen Babcock
David MacMahon wrote: > >> (Without that -immutable option, display replaces a transparent >> background >> with a checkerboard background which apparently is something of an >> industry >> standard to signal you really do have a transparent background.) > > I agree that this *can be* a reall

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-15 Thread David MacMahon
On Mar 15, 2010, at 14:32 , Alan W. Irwin wrote: > Then "display -immutable test_transparent.png" > > really does show the desktop underneath the plot which indeed is a > really cool-looking effect. Using a very recent ImageMagick (6.6.0), "display" gives me the checkerboard background without

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-15 Thread Alan W. Irwin
On 2010-03-14 11:32-0700 Alan W. Irwin wrote: > On 2010-03-14 10:50-0500 Hezekiah M. Carty wrote: >> Revision 10866 should fix this. If the background color has an alpha >> value < 1.0 then a white surface is drawn before the transparent >> background color. This produces good looking results fo

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-14 Thread Hazen Babcock
Alan W. Irwin wrote: > On 2010-03-13 13:16-0800 Alan W. Irwin wrote: > >> On 2010-03-13 14:45-0500 Hazen Babcock wrote: >> >>> Alan W. Irwin wrote: Hazen, will you have a look at this issue, please? This transparent background issue does not appear for, e.g., -dev pscairo so it appears

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-14 Thread Alan W. Irwin
On 2010-03-14 10:50-0500 Hezekiah M. Carty wrote: Hmm. after updating to get your fix and "make cairo" I still get the same (bad) result (with page 1 still visible underneath) for examples/c/x02c -dev xcairo  -bg FF_0.1 examples/c/x02c -dev qtwidget -bg FF_01

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-14 Thread Hezekiah M. Carty
On Sun, Mar 14, 2010 at 9:54 AM, Hezekiah M. Carty wrote: > On Sat, Mar 13, 2010 at 5:12 PM, Alan W. Irwin > wrote: >> On 2010-03-13 13:16-0800 Alan W. Irwin wrote: >> >>> On 2010-03-13 14:45-0500 Hazen Babcock wrote: >>> Alan W. Irwin wrote: > > Hazen, will you have a look at this i

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-14 Thread Hezekiah M. Carty
On Sat, Mar 13, 2010 at 5:12 PM, Alan W. Irwin wrote: > On 2010-03-13 13:16-0800 Alan W. Irwin wrote: > >> On 2010-03-13 14:45-0500 Hazen Babcock wrote: >> >>> Alan W. Irwin wrote: Hazen, will you have a look at this issue, please?  This transparent background issue does not appear

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-13 Thread Alan W. Irwin
On 2010-03-13 13:16-0800 Alan W. Irwin wrote: > On 2010-03-13 14:45-0500 Hazen Babcock wrote: > >> Alan W. Irwin wrote: >>> Hazen, will you have a look at this issue, please? This transparent >>> background issue does not appear for, e.g., -dev pscairo so it appears this >>> issue may be specific

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-13 Thread Alan W. Irwin
On 2010-03-13 14:45-0500 Hazen Babcock wrote: > Alan W. Irwin wrote: >> Hazen, will you have a look at this issue, please? This transparent >> background issue does not appear for, e.g., -dev pscairo so it appears this >> issue may be specific within the cairo devices to just -dev xcairo although

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-13 Thread Hazen Babcock
Alan W. Irwin wrote: > On 2010-03-10 00:43-0800 David MacMahon wrote: > >> I just ran this... >> >> x02c -dev xcairo -bg ff_0.3 >> >> ...and noticed on the second plot I can "see through" to the first >> plot. I don't think I have any other non-cairo, alpha-capable >> drivers built so I can't

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-10 Thread David MacMahon
On Mar 10, 2010, at 11:05 , Alan W. Irwin wrote: > There are already > some neat transparent background effects being deployed on the desktop > (e.g., if you move a KDE GUI it becomes transparent so you can see > underneath it) that show this is possible. I think this might be a property of the

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-10 Thread Alan W. Irwin
On 2010-03-10 10:15-0800 David MacMahon wrote: > I'm not really sure how to interpret alpha for the background of a GUI > window. What's behind the background to see through too? For graphics files > (e.g. .png or .svg) they might be overlaid on something else so background > transparency the

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-10 Thread David MacMahon
Thanks for confirming this, Alan! On Mar 10, 2010, at 8:09 , Alan W. Irwin wrote: > -dev qtwidget does not have this problem, and neither does -dev > svg. (For > the latter, you must use the familying option -fam which will > generate two > files corresponding to the two pages.) I don't know

Re: [Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-10 Thread Alan W. Irwin
On 2010-03-10 00:43-0800 David MacMahon wrote: > I just ran this... > > x02c -dev xcairo -bg ff_0.3 > > ...and noticed on the second plot I can "see through" to the first > plot. I don't think I have any other non-cairo, alpha-capable > drivers built so I can't tell if it's cairo-related or m

[Plplot-devel] -bg with alpha gives strange overlay effect on x02c

2010-03-10 Thread David MacMahon
I just ran this... x02c -dev xcairo -bg ff_0.3 ...and noticed on the second plot I can "see through" to the first plot. I don't think I have any other non-cairo, alpha-capable drivers built so I can't tell if it's cairo-related or more general. Here are the devices I have available...