Chapter Contents

Previous

Next
The GIMPORT Procedure

Example 2: Adjusting the Graphics Output


Procedure features:
SCALE statement
TRANSLATE statement
MAP statement
Sample library member: GR17N02

[IMAGE]

This example imports the CGM file that was created in the earlier example and modifies the output. This example uses the SCALE and TRANSLATE statements to correct the size and position of the imported CGM. The MAP statement is also used to substitute a SAS/GRAPH software font for a font in the CGM.
 Note about code
filename gsasfile 'external-file';
goptions reset=goptions gunit=pct border cback=white
         colors=(black) htitle=6 htext=3;
 Note about code
proc gimport fileref=gsasfile filetype=cgm format=binary;
   scale x=.7 y=.8;
   translate x=3.5 y=10;
   map 'SCRIPT' to script;
   map 'CENTB' to centb;
   map 'ZAPF' to zapf;
   map 'SWISS' to swiss;
run;

Font List shows the font list that is displayed in the log file. Note that no warning messages follow the font list because all of the fonts that are used in the CGM have been remapped.

Font List
  .
  .
  .

  NOTE: These fonts are used in this CGM file. You may use the MAP statement
        to map these fonts to 
SAS/GRAPH
 fonts.
  1. SIMPLEX
  2. BRUSH
  3. CENTB
  4. CENTBE
  5. CENTBI
  6. CENTBIE
  7. CENTX
  8. CENTXE
  9. CENTXI
  10. CENTXIE
  11. GERMAN
  12. GITALIC
  13. DUPLEX
  14. COMPLEX
  15. TRIPLEX
  16. TITALIC
  17. ITALIC
  18. OLDENG
  19. SCRIPT
  20. CSCRIPT
  21. SWISS
  22. SWISSE
  23. SWISSB
  24. SWISSBE
  25. SWISSBI
  26. SWISSBIE
  27. SWISSX
  28. SWISSXE
  29. SWISSXB
  30. SWISSXB
  31. SWISSXBE
  32. SWISSI
  33. SWISSIE
  34. SWISSL
  35. SWISSLE
  36. ZAPF
  37. ZAPFE
  38. ZAPFB
  39. ZAPFBE
  40. ZAPFBI
  41. ZAPFBIE
  42. ZAPFI
  43. ZAPFIE
  .
  .
  .


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.