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

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to