Date: Tue, 11 Nov 2003 11:09:56 -0800
Reply-To: "Huang, Ya" <yhuang@AMYLIN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Huang, Ya" <yhuang@AMYLIN.COM>
Subject: Re: Annotate, image function and emf format (answer from SI)
Content-Type: text/plain; charset="iso-8859-1"
For those who might be interested, here is the
answer from SAS tech support:
The Annotate IMAGE function supports Raster/Bitmap formatted files
such as GIF,TIFF,JPEG,PNG, and BMP. The Vector formatted files such
as EMF,WMF,CGM, and EPS are not currently supported.
Too bad, it could be a very good tool to make multiple
panels graphs without using proc greplay, which is not
very convenient.
Ya
-----Original Message-----
From: Huang, Ya
Sent: Monday, November 10, 2003 4:51 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Annotate, image function and emf format
Hi,
The following code works fine when the image is in gif
format (m6v8c.gif, which is a yahoo logo, save from browser),
but failed when image is in emf format, anyone
has an idea why?
filename gout "c:\temp\junk.emf";
goptions reset=all device=emf gsfname=gout gsfmode=replace
ftext=none hsize=3 in vsize=3 in;
symbol v=dot i=j;
proc gplot data=sashelp.class;
plot weight*age;
run;
quit;
goptions reset=all;
data xx;
length function style $ 8;
retain line 0 xsys ysys '2' hsys '3' x 8;
function='move'; x=0; y=0; output;
imgpath='c:\temp\junk.emf';
* imgpath='c:\temp\m6v8c.gif';
function='image'; y=y+100; x=x+100; style='fit';
output;
run;
proc ganno annotate=xx datasys;
run;
quit;
The error message is:
ERROR: Unable to read image c:\temp\junk.emf
But according to the SAS Help (build in help, not Online Doc,
from which I couldn't even find the image function),
emf is supported. I can see junk.emf with WORD or
even SAS graph editor.
Thanks
Ya Huang
|