Similar Threads:
1.Creating a High Resolution Image of a SAS Dataset
Hello Everyone,
I'm trying to create a high resolution image (not a screen shot) of a SAS dataset for use in a conference poster. I understand that .tiff and .eps are best formats for this purpose but likely would be willing to settle for any format that is high resolution at this point.
So far, I've learned how to output .eps images but these can only be viewed with "Ghostview" and this is proving to be a problem. SAS also doesn't seem to be very good at producing .tiff images although it is capable of doing that.
Does anyone have any suggestion about how to proceed?
Thanks,
Paul
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
2.FW: How to high resolution ODS graphics images for PowerPoint
I hate to burst people's bubble, BUT ODS does not appear to be able to produce vector output. The code shown here produces an image and the extension is emf, but it is in fact really a bit mapped file. Opening it in a vector program such as Adobe Illustrator shows that it is one image, you can not select any parts of the image (except the whole) and when blown up to 300% clearly shows characteristics of a bit mapped image.
I went through this a number of months ago, trying every example, every trick I could think of without success. I finally called SAS and when the customer service person talked to the programmers, they told me that regardless of the extension, the images are bit mapped. Major disappointment.
So far, the only way I've found to get vector images is use the regular graph, open the graph output window and then do File/Export as emf. Then it is a vector image that can be used.
Morley Herbert
-----Original Message-----
From: SAS(r) Discussion [mailto: XXXX@XXXXX.COM ] On Behalf Of Chang Chung
Sent: Tuesday, June 30, 2009 9:05 AM
To: XXXX@XXXXX.COM
Subject: Re: How to high resolution ODS graphics images for PowerPoint
On Mon, 29 Jun 2009 17:09:43 -0400, Richard Hoskins < XXXX@XXXXX.COM > wrote:
>SAS 9.2, Once I get an ODS graphics image in the Results window I need
>to save that image for importinging into WORD or PowerPoint. But the
>only options appear to be bmp or png. The png image is not of high
>enough resolution that it looks OK in a Powerpoint slide.
>
>1) How can I save the image to a higher resolution? more dots/cm
>2) Can the results window image be saved to other formats? (GIF)
>especially to a vector format (EMF) ?
Hi,
Unlike the old sas graphics system, the new statistics graphic proc's (or sg
procs) generate images directly. And it chooses appropriate image format for the active ods destination.
If you generate raster images, then you can use the image_dpi= option when you open the destination. For vector images like emf, setting dpi does not make sense at all. It should automatically increase/decrease dpi depending on the device. You just set the size (width, height) and windows GDI should take care of the dpi, in order to maintain the given size. ODS graphics'
default aspect ratio is width:height=4:3, unless you override it.
Below, I show two examples. Hope this helps a bit.
Cheers,
Chang
<sasl:code sysvlong="9.02.01M0P020508" sysscpl="W32_VSPRO"> %let pwd = %sysfunc(pathname(WORK)); %put pwd=&pwd; x cd &pwd;
/* generating a large emf file (width=8inch) */ ods listing style=journal; ods graphics on / width=8in imagefmt=emf imagename="emf";
proc sgplot data=sashelp.class;
scatter x=height y=weight / group=sex;
run;
ods graphics off;
/* generating a 300 dpi gif file */
ods listing style=journal image_dpi=300; ods graphics on / reset=all imagefmt=gif width=4in imagename="gif";
proc sgplot data=sashelp.class;
scatter x=height y=weight / group=sex;
run;
ods graphics off;
/* generated graph file (gif.gif)^s demension: 1200 x 900 pixels */ </sasl:code>
3.How to high resolution ODS graphics images for PowerPoint
SAS 9.2, Once I get an ODS graphics image in the Results window I need to
save that image for importinging into WORD or PowerPoint. But the only
options appear to be bmp or png. The png image is not of high enough
resolution that it looks OK in a Powerpoint slide.
1) How can I save the image to a higher resolution? more dots/cm
2) Can the results window image be saved to other formats? (GIF) especially
to a vector format (EMF) ?
thanks -
4.SAS/Graph TIFF Image Resolution
Hi folks,
Continuing a task that got interrupted from last week, I am still attempting to create some decent images of SAS/Graph output as TIFF files. Last week, I found that the File->Export as Image... menu item did not provide any way to allow the image resolution to be specified, and always appears to default to screen resolution, around 72 to 100 dpi. This low resolution produces jaggies in slanted lines, and blocky, ugly looking text when used for hardcopy output.
I contacted SAS Tech Support regarding this problem, and they recommended using the TIFFP driver instead of the Export dialogue. While going that route introduces other complications for my needs, it seemed like a reasonable work-around...
Unfortunately, I can't seem to get any higher resolution by using the TIFFP driver. For example, here are a couple of different goption statements that I used with consecutive runs of a program that creates a number of plots:
goptions device=TIFFP papersize=(11,17) hsize=11 vsize=17 xpixels=%eval(11*300) ypixels=%eval(17*300) hpos=110 vpos=102
gsfname=GraphOut gsfmode=replace;
goptions device=TIFFP papersize=(11,17) hsize=11 vsize=17 xpixels=%eval(11*600) ypixels=%eval(17*600) hpos=110 vpos=102
gsfname=GraphOut gsfmode=replace;
As you can see, I specified an output size of 11 x 17 inches (hsize and vsize weren't defaulting properly, so I had to specify those as well), a resolution of 300 dpi for one set of plots, and 600 dpi for the other set. In spite of that, when I viewed the output image files and inspected their properties, I found that BOTH sets were created with identical dimensions of 1045 pixels by 1615 pixels, or less than 100 dpi.
As a result, I plan to contact SAS Tech Support once again regarding this issue. However, they won't be able to get back to me until tomorrow at best. In the mean time, does anyone else out there have an idea of something that I can or should be doing differently in order to obtain higher quality TIFF image resolutions of 300 to 600 dpi?
Thanks
s/KAM
5.SAS/Graph Image Resolution
I would like to create a TIFF file of the output from a SAS/Graph procedure. Using File->Export as Image, I can create a TIFF image, but it seems to be created based on the relatively low screen resolution (72 or 100 dpi) rather than at a higher resolution appropriate for further manipulation and printing (300 to 600 dpi). How can I control the resolution of TIFF images that are created using SAS??? Thanks,
s/KAM
6. Configuring imported image resolution
7. SAS/GRAPH: Resolution & File Size of Jpeg
8. Proc Report, PDF's, Blank Lines, and a high level of frustration