From: Tsjerk W. <ts...@gm...> - 2010-01-21 14:46:57
|
Hi David, > Doesn't png already take a size and resolution argument? > cmd.png(string filename, int width, int height, float dpi, int ray, int > quiet) > > so, now I do cmd.png('1acb.png', 5,4,units=in, dpi=300) ? Errm, that only makes sense if the viewport itself is resampled somehow when you don't do raytracing, but I don't think it is. More probable, one of both, size or resolution, will be disregarded. Consider that your viewport has a fixed number of pixels on x and on y (the same goes for a raytraced image). Now to write that to an image, you can say "I want to have so many pixels per inch" and see what size you end up with, or you can say, "I want to have it this large" and see what resolution you get. If you are demanding a specific size and resolution, there's no other option than to construct the image again (adapt viewport/raytrace). I hope this makes it clear. Cheers, Tsjerk -- Tsjerk A. Wassenaar, Ph.D. Computational Chemist Medicinal Chemist Neuropharmacologist |