Re: [Rd] readPNG gives warnings and doesn't execute sample code from help files

2011-02-15 Thread Ben Bolker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/15/2011 08:44 AM, Joris Meys wrote: > Sorry, correction. X11() is not supposed to do that. So on Windows, > per-pixel alpha is no option apparently. Any chance this will be > implemented in the future? > > Cheers > Joris > > PS : also thx to Si

Re: [Rd] readPNG gives warnings and doesn't execute sample code from help files

2011-02-15 Thread Joris Meys
Sorry, correction. X11() is not supposed to do that. So on Windows, per-pixel alpha is no option apparently. Any chance this will be implemented in the future? Cheers Joris PS : also thx to Simon for his helpful answer earlier. On Tue, Feb 15, 2011 at 2:40 PM, Joris Meys wrote: > Thx again for

Re: [Rd] readPNG gives warnings and doesn't execute sample code from help files

2011-02-15 Thread Joris Meys
Thx again for your answer. I've tried X11() - which is supposed to support alpha per pixel as well, but on Windows that's still no avail. So basically, on Windows I can forget about alpha? Cheers Jors On Tue, Feb 15, 2011 at 2:20 PM, Ben Bolker wrote: > Joris Meys gmail.com> writes: > >> >> I b

Re: [Rd] readPNG gives warnings and doesn't execute sample code from help files

2011-02-15 Thread Ben Bolker
Joris Meys gmail.com> writes: > > I believed the standard plotting device on R in 2.12.1 would support > per-pixel alpha. It does support alpha, as > > plot(1:2,type="l") > polygon(c(1,1,2,2),c(1,2,2,1),col=rgb(60,100,60,60,maxColorValue=255)) > > plots correctly. Which device should I use t

Re: [Rd] readPNG gives warnings and doesn't execute sample code from help files

2011-02-15 Thread Joris Meys
I believed the standard plotting device on R in 2.12.1 would support per-pixel alpha. It does support alpha, as plot(1:2,type="l") polygon(c(1,1,2,2),c(1,2,2,1),col=rgb(60,100,60,60,maxColorValue=255)) plots correctly. Which device should I use then? Cheers Joris On Mon, Feb 14, 2011 at 5:30

Re: [Rd] readPNG gives warnings and doesn't execute sample code from help files

2011-02-14 Thread Simon Urbanek
Joris, On Feb 14, 2011, at 10:05 AM, Joris Meys wrote: > Dear all, > > I noticed in the latest R version (R.2.12.1) that the readPNG gives > following warning when running the example code in the help file (or > when using any other png for that matter) : > > 50: In rasterImage(img, 1.2, 1.27,

[Rd] readPNG gives warnings and doesn't execute sample code from help files

2011-02-14 Thread Joris Meys
Dear all, I noticed in the latest R version (R.2.12.1) that the readPNG gives following warning when running the example code in the help file (or when using any other png for that matter) : 50: In rasterImage(img, 1.2, 1.27, 1.8, 1.73) : Per-pixel alpha not supported on this device No picture