linux 下 ps 批量转换成 png
安装
从 http://www.imagemagick.org/script/download.php 下载安装包并安装.
脚本
#!/bin/sh
########################
## using “convert” from ImageMagick to do ps convert into PNG
#########################
echo PS convert to PNG, please wait the process
for INP in *.ps
do
newname=`basename $INP .ps`
convert -density 150 -geometry 100% $INP $newname%02d.png
e...
cpgplot输出到png文件
语法
if ( (newgraph == 1) || (newgraph == 3) ) {
if (device == 0x0) device = "?" ;
int ier = cpgbeg(0, device, nxpage, nypage) ;
if (ier != 1) {
cout << "problem in opening PGPLOT display !" << endl ;
}
}
可用的device list
Graphics device/type (? to see list, default /Xserve): ?
PGPLOT v5.2.2 Copyright 1997 Cal...
21 post articles, 3 pages.