How do I create 300 dpi images?

Steven Weigand weigansj at nwu.edu
Thu Jan 8 09:15:30 EST 1998


Dear Steffen,
	I can not offer you any suggestions for Setor since I have never used
it, but I can help you with molscript.  If you output either postscript
or eps files from molscript, the resolution is that of the printer
(usually >= 300dpi) since postscript files contain line drawing commands
for the printer.  However if you make a raster3D input file and then use
raster3D's render command to create the rgb you can control the
resolution (for a 20cm wide image at 300dpi you need to create a 2362
pixel wide rgb).  Basically what you need to do is this:
% molscript -r < foo.inp > foo.r3d
Then change the first few lines of foo.r3d 
FROM:
63 47     tiles in x,y; SGI small screen: 63 47, large: 80 64 (pixel
mode 3)
24 24     pixels (x,y) per tile
3         pixel mode: 3x3 virtual pixels -> 2x2 pixels
TO:
118 118   tiles in x,y; SGI small screen: 63 47, large: 80 64 (pixel
mode 3)
30 30     pixels (x,y) per tile
3         pixel mode: 3x3 virtual pixels -> 2x2 pixels
Finally
% render -sgi foo.rgb < foo.r3d

The resulting rgb will be 118*30*2/3=2360 pixels wide.  This can be
printed with xv (being sure to check "Normal Size" in the "xv save"
window) or imported into showcase for labeling and then printed.  
	I do not know how Setor works, but if it can export an image that is
2360 pixels wide (i.e. larger than the screen) you should be able to do
the same thing.  I hope this is of use to you and I apologize if this is
either too simplistic or redundant.
					Steven Weigand
P.S.
raster3D information is at
  http://www.bmsc.washington.edu/raster3d/raster3d.html
xv info is at
  http://www.trilon.com/xv/
  ftp://ftp.cis.upenn.edu/pub/xv/
--
Steven Weigand                   mailto:steve at xray1.pharm.nwu.edu
Dept. Mol. Pharm. Biol. Chem. -- S215   Lab phone: (312) 503-0813
Northwestern University Medical School
303 East Chicago Ave. Chicago, IL 60611




More information about the Xtal-log mailing list