Kjetil Brinchmann Halvorsen
2004-Oct-06 16:14 UTC
[Rd] problems with bitmap images in windows XP
This is rw2000 on windowsXP jpeg("test.jpeg", bg="orangered") plot(1:10, 1:10, col="green") dev.off() ------ jpeg("test.jpeg", bg="blue") plot(1:10, 1:10, col="red") dev.off() ------- jpeg("test.jpeg", bg="green") plot(1:10, 1:10, col="red") dev.off() --- jpeg("test.jpeg", bg="white") plot(1:10, 1:10, col="red") dev.off() Now, all of this gives a bluish background when wieved with Windows Picture and Fax wiever or with the GIMP-2.0 The bg= argument does not seem to have any effect. Now repeating in rw191: jpeg("test.jpeg", bg="orangered") plot(1:10, 1:10, col="blue") dev.off() and the background is blue (not the same "bluish" as above) jpeg("test.jpeg", bg="blue") plot(1:10, 1:10, col="red") dev.off() and the background color is red. Similar symptoms with the other bitmap devices. The only mention about bitmap devices in the NEWS file for R2.0.0 is o The png() and jpeg() devices (and the bmp() device under Windows) now allow a nominal resolution to be recorded in the file. So what has happened? Kjetil -- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra
On Wed, 06 Oct 2004 10:14:15 -0400, Kjetil Brinchmann Halvorsen <kjetil@acelerate.com> wrote :>This is rw2000 on windowsXP > > jpeg("test.jpeg", bg="orangered") > plot(1:10, 1:10, col="green") > dev.off()...>Now, all of this gives a bluish background when wieved with Windows >Picture and Fax wiever or with the GIMP-2.0 >The bg= argument does not seem to have any effect.....>So what has happened?There was a Windows-specific bug, for which I've just committed a fix. Windows builds of r-patched or r-devel available tomorrow or later should have it fixed. Duncan Murdoch