\documentclass{article}

\usepackage[dvips]{graphicx}

\catcode`\<\active
\def<#1>{{\fboxsep0pt...\fbox{#1}...}}

\DeclareGraphicsExtensions{ps,ps.gz}
\graphicspath{{aa/}}
 \DeclareGraphicsRule{ps}   {eps} {ps}    {}
 \DeclareGraphicsRule{eps}  {eps} {eps}   {}
 \DeclareGraphicsRule{ps.gz}{eps} {ps.bb} {`zcat #1}
 \DeclareGraphicsRule{pcx}  {bmp} {}      {}

\begin{document}
\makeatletter


0<\includegraphics{a}>

1<\includegraphics[draft]{a}>


1<\includegraphics[type=eps,ext=xyz,read=xyz,command=##1]{b}>

1a<\includegraphics[scale=.5]{a}>

2<\includegraphics[height=150bp]{a}>

3<\includegraphics[width=300bp]{a}>

4<\includegraphics[height=150bp,width=300bp]{a}>


1<\includegraphics{a}>
2<\includegraphics[scale=.5]{a}>
2b<\includegraphics[height=2in]{a}>




%
5\fbox{\includegraphics[bb= 100 100 150 150,clip,angle=45]{a}}

6a\fbox{\includegraphics[bb= 100 100 150 150]{a}}
6a\fbox{\includegraphics[bb= 100 100 150 150,clip]{a}}
6b\fbox{\includegraphics*[bb= 100 100 150 150]{a}}
6c\fbox{\includegraphics[bb= 100 100 150 150,clip=TRUE]{a}}

\newsavebox\foo
%
%\sbox\foo{\parbox[b]{1in}{w\\x\\\parbox[t]{1cm}{a\\b}}}
%
%<{\usebox\foo}>
%<\rotatebox{180}{\usebox\foo}>
%
%<{\usebox\foo}>
%<\rotatebox[origin=c]{180}{\usebox\foo}>
%<\rotatebox[origin=bl]{180}{\usebox\foo}>
%
%<{\usebox\foo}>
%<\rotatebox[x=0pt,y=.7\height]{180}{\usebox\foo}>
%<\rotatebox[x=0pt,y=.2\height]{180}{\usebox\foo}>

<\rotatebox[]{90}{ABCxyz}>


<\rotatebox[units=-360]{90}{ABCxyz}>

<\rotatebox[units=6.283185]{1.5708}{ABCxyz}>


\end{document}

