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

2011-02-15 Thread Ben Bolker
Joris Meys jorismeys at 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

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 bbol...@gmail.com wrote: Joris Meys jorismeys at

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 jorism...@gmail.com

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 Simon for

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, 1.8,