Usage Note 22245: I have a company logo stored as a bitmap file. Is there a way for
me to add the logo to charts or plots that I produce with SAS/GRAPH?
You can add logos or other bitmap files to SAS/GRAPH output by using
the Graphics Editor and/or PROC GREPLAY. The method you use will depend
on whether you want to add the bitmap to a single graph, or to a large
number of graphs.
If you want to add the logo to a single graph, follow these steps:
- Create the graph using PROC GPLOT, GCHART, GMAP, GSLIDE, etc.
- Use PROC GREPLAY to display the graph on your screen.
- When the graph is displayed, select Edit => Edit Current Graph. This brings up the Graphics Editor.
- From the Graphics Editor, select File => Import Image. This will bring up
a window where you can select the specific bitmap file to import.
- When you select the file, a retangular box the size of the bitmap
image will appear on the screen. Use the mouse to position the box
where you want the image. You can also resize the logo at this
point. Click the mouse, and the image will be displayed in that
location.
- You can either print the graph from the Graphics Editor, or you can
exit the Graphics Editor and print the graph using PROC GREPLAY.
If you want to add the same bitmap file to a series of graphs, you can do
the following:
- Create a blank graph by running PROC GSLIDE with only a blank title.
- Follow steps 2-5 above to add the logo to the blank graph, and
save the graph to a permanent catalog.
- Create the graphs you want to add the logo to using PROC GCHART,
GPLOT, GSLIDE, etc. Store these graphs in the same catalog as your blank
graph with the bitmap.
- Invoke PROC GREPLAY, and use the template facility to replay each
of your graphs along with the logo graph using the template named WHOLE.
(The WHOLE template is in SASHELP.TEMPLT). Replay both the logo graph and
your "regular" graph in panel 1 of the template. This causes the two graphs
to be displayed on top of each other, and the resulting graph has the logo
superimposed on the original graph. For example, suppose that you have
created a blank graph with a bitmap logo as described above, and have named
that graph LOGO and stored it in a catalog named PERM.MYCAT. Also assume
that you have generated 5 bar charts that you have named BAR1-BAR5 and have
also stored in PERM.MYCAT. You can use the following PROC GREPLAY
statements to combine the LOGO graph with the charts:
proc greplay igout=perm.mycat tc=sashelp.templt nofs;
template whole;
treplay 1:logo 1:bar1;
treplay 1:logo 1:bar2;
treplay 1:logo 1:bar3;
treplay 1:logo 1:bar4;
treplay 1:logo 1:bar5;
quit;
Operating System and Release Information
SAS System | SAS/GRAPH | All | n/a | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Usage Note |
Priority: | low |
Date Modified: | 2007-11-08 13:31:17 |
Date Created: | 2002-12-16 10:56:42 |