ACTXIMG and JAVAIMG Device Drivers Compared to GIF, JPEG, and PNG Device Drivers


ACTXIMG and JAVAIMG Device Drivers Compared to GIF, JPEG, and PNG Device Drivers

GIF, JPEG, and PNG Device Drivers

When you specify GOPTIONS DEVICE=GIF, JPEG, or PNG with a SAS/GRAPH procedure, the image file that is created is identical in appearance to the corresponding GRSEG entry as it appears in the Graph window of SAS.

If you use the Output Delivery System (ODS), then you can add data tips that are displayed when the cursor is over a portion of the image. (See Data Tips in GIF, JPEG, and PNG Files on page 568.) You can also add hotspots to images to link to other images or to other URLs. (See Links in GIF, JPEG, and PNG Files on page 571.)

ACTXIMG and JAVAIMG Device Drivers

If you specify GOPTIONS DEVICE=ACTXIMG or DEVICE=JAVAIMG, then a PNG file is created by either a SAS/GRAPH control for ActiveX or by a Java applet and may not be identical in appearance to the image in the GRSEG catalog, but can be enhanced with ODS stylesheet properties.

When you specify DEVICE=ACTXIMG, you can add links to the output of any SAS/GRAPH procedure that supports the HTML= or HTML_LEGEND= option. For further details, see Links in GIF, JPEG, and PNG Files on page 571 . You can also provide pop-up data tips to display when the cursor is over an image created with the ACTXIMG device driver (see Data Tips in ACTXIMG and JAVAIMG Images on page 568). When you specify DEVICE=JAVAIMG, SAS does not create an image map for hotspot links.

Output From Different Device Drivers Compared

The following example uses the JAVAIMG device driver to generate the image. The resulting Web presentation has the visual impact of an interactive presentation, but with smaller files that require no Java access or ActiveX Control installation and are not interactive. In this example, the ODS style GEARS specifies a color -coordinated background and background image, along with coordinated text fonts and sizes in the axis labels. The code for this example, which is available in the SAS Sample Library under the name GWBJAIMG, is as follows :

 ods listing close;  ods html file=temp.html style=gears;  goptions device=javaimg;  proc gchart data=sashelp.class;     vbar height / group=sex name=test ;     run;     quit;  ods html close; 
click to expand
Display 13.1: A Bar Chart Using the JAVAIMG Device Driver

The following images shows the same bar chart created with the GIF device driver. You can generate this image by specifying GOPTIONS DEVICE=GIF. The graphs generated by specifying DEVICE=JPEG or DEVICE=PNG are very similar to this and differ mostly in the physical file size .

click to expand
Display 13.2: A Bar Chart Using the GIF Device Driver



SAS.GRAPH 9.1 Reference, Volumes I and II
SAS.GRAPH 9.1 Reference, Volumes I and II
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 342

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net