[R] How to write a BMP file pixel by pixel?

2012-05-04 Thread ZHANG Yingqi
Dear all, I open a bmp device by the bmp() function in the png package, but I don't know how to write color pixel by pixel into the file? Any help or hint? What I want to do is to create a 512*512 bmp file with certain dots being red and others black. I have all the pixel

Re: [R] How to write a BMP file pixel by pixel?

2012-05-04 Thread Uwe Ligges
See package pixmap, for example. Uwe Ligges On 04.05.2012 03:10, ZHANG Yingqi wrote: Dear all, I open a bmp device by the bmp() function in the png package, but I don't know how to write color pixel by pixel into the file? Any help or hint? What I want to do is to create a