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 coordinates for the red dots, but I don't know how to draw the color on the device.
Please help me!
Sincerely yours,
Yingqi
********************
Yingqi ZHANG
Beijing P.O. Box 643, China 100044
Institute of Vertebrate Paleontology and Paleoanthropology (IVPP)
Chinese Academy of Sciences
Tel: +86-10-88369378 Fax: +86-10-68337001
Email: arvicolid at gmail.com
How to write a BMP file pixel by pixel?
2 messages · ZHANG Yingqi, 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 512*512 bmp file with certain dots being red and others black. I have all the pixel coordinates for the red dots, but I don't know how to draw the color on the device.
Please help me!
Sincerely yours,
Yingqi
********************
Yingqi ZHANG
Beijing P.O. Box 643, China 100044
Institute of Vertebrate Paleontology and Paleoanthropology (IVPP)
Chinese Academy of Sciences
Tel: +86-10-88369378 Fax: +86-10-68337001
Email: arvicolid at gmail.com
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.