summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/graphicxsp/examples/grxsp_comp_noaeb.tex
blob: 6aaae2866fb72ae55982b90855a38fbe1ea517b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
\documentclass{article}
\usepackage[dvips,preview]{graphicxsp}

\title{\textsf{GraphicxSP}\\Comparing \textsf{Graphicx} and \textsf{GraphicxSP}}
\author{D. P. Story}

\embedEPS[hiresbb,transparencyGroup]{AdobeDon}{graphics/AdobeDon}
\embedEPS[transparencyGroup]{ex}{graphics/example}

\parindent0pt
\setlength{\fboxsep}{0pt}


\begin{document}

\maketitle

\section{Introduction}

We make direct visual comparisons between the results obtained from the
\textsf{graphicx} package versus the \textsf{graphicxsp} package. In the sections
that follow, \textsf{graphicx} image always appears \emph{on the left}, and the
\textsf{graphicxsp} image appears \emph{on the right}.

\section{The \texttt{width}/\texttt{height}/\texttt{scale} options}

\begin{center}
\includegraphics[width=1.5in]{graphics/AdobeDon}
\insertEPS[width=1.5in]{AdobeDon}\\[1ex]
\texttt{width=1.5in}
\end{center}

\begin{center}
\includegraphics[height=1in]{graphics/AdobeDon}
\insertEPS[height=1in]{AdobeDon}\\[1ex]
        \texttt{height=1in}
\end{center}

\begin{center}
\includegraphics[scale=.5]{graphics/AdobeDon}
\insertEPS[,scale=.5]{AdobeDon}\\[1ex]
\texttt{scale=.5}
\end{center}

\medskip
To my eyes, the \textsf{graphicx} images on the left seems blurrier
than the \textsf{graphicxsp} image and don't magnify as well.

\section{Comparing \texttt{bb}}

\vspace{1in}

\begin{center}
\includegraphics[width=.5in,bb=30 50 150 100]{graphics/AdobeDon}\qquad\qquad
\insertEPS[width=.5in,bb=30 50 150 100]{AdobeDon}\\[3ex]
        \texttt{bb=30 50 150 100}
\end{center}

\begin{center}
\includegraphics[width=.5in,bb=30 50 150 100,clip]{graphics/AdobeDon}\qquad\qquad
\insertEPS[width=.5in,bb=30 50 150 100,clip]{AdobeDon}\\[1ex]
        \texttt{bb=30 50 150 100,clip}
\end{center}

\section{trim}

\begin{center}
\includegraphics[width=.5in,trim=20 20 30 15]{graphics/AdobeDon}\qquad\qquad
\insertEPS[width=.5in,trim=20 20 30 15]{AdobeDon}\\[3ex]
\texttt{trim=20 20 30 15}
\end{center}

\begin{center}

\includegraphics[width=.5in,trim=20 20 30 15,clip]{graphics/AdobeDon}\qquad\qquad
\insertEPS[width=.5in, trim=20 20 30 15,clip]{AdobeDon}\\[1ex]
\texttt{trim=20 20 30 15,clip}
\end{center}

\medskip
Again, to my eyes, the \textsf{graphicx} images on the left seems
blurrier than the \textsf{graphicxsp} image.

\section{\protect\texttt{viewport}}

\begin{center}
\includegraphics[width=.5in,viewport=20 20 60 75]{graphics/AdobeDon}\qquad\qquad
\insertEPS[width=.5in, viewport=20 20 60 75]{AdobeDon}\\[4ex]
\texttt{viewport=20 20 60 75}
\end{center}

\begin{center}
\includegraphics[width=.5in,viewport=20 20 60 75,clip]{graphics/AdobeDon}\qquad\qquad
\insertEPS[width=.5in,viewport=20 20 60 75,clip]{AdobeDon}\\[3ex]
\texttt{viewport=20 20 60 75,clip}
\end{center}

\section{\protect\texttt{keepaspectratio}}

\begin{center}
\includegraphics[width=1.5in,height=1in]{graphics/AdobeDon}
\insertEPS[width=1.5in,height=1in]{AdobeDon}\\[1ex]
\texttt{width=1.5in,height=1in}
\end{center}

\begin{center}
\includegraphics[width=1.5in,height=1in,keepaspectratio]{graphics/AdobeDon}
\insertEPS[width=1.5in,height=1in,keepaspectratio]{AdobeDon}\\[1ex]
\texttt{width=1.5in,height=1in,keepaspectratio}
\end{center}


\section{rotations}

\begin{center}
\texttt{AdobeDon} \fbox{\includegraphics[width=.5in,origin=c,angle=-45]{graphics/AdobeDon}}
\texttt{AdobeDon} \fbox{\insertEPS[width=.5in,origin=c,angle=-45]{AdobeDon}}\\[1ex]
\texttt{angle=-45,origin=c}
\end{center}

\begin{center}
\texttt{AdobeDon} \fbox{\includegraphics[width=.5in,origin=rt,angle=-45]{graphics/AdobeDon}}
\texttt{AdobeDon} \fbox{\insertEPS[width=.5in,origin=rt,angle=-45]{AdobeDon}}\\[1ex]
\texttt{angle=-45,origin=rt}
\end{center}


\section{rotations and \texttt{bb}/\texttt{trim}/\texttt{viewport}}

\begin{center}
\includegraphics[width=.5in,angle=45,bb=30 50 150 100,clip]{graphics/AdobeDon}
\insertEPS[width=.5in,angle=45,bb=30 50 150 100,clip]{AdobeDon}\\[1ex]
\texttt{angle=45,bb=30 50 150 100,clip}
\end{center}

\begin{center}
\includegraphics[width=.5in,angle=45,trim=20 20 30 15,clip]{graphics/AdobeDon}
\insertEPS[width=.5in,angle=45,trim=20 20 30 15,clip]{AdobeDon}\\[1ex]
\texttt{angle=45,trim=20 20 30 15,clip}
\end{center}

\begin{center}
\includegraphics[width=.5in,angle=45,viewport=20 20 60 75,clip]{graphics/AdobeDon}
\insertEPS[width=.5in,angle=45,viewport=20 20 60 75,clip]{AdobeDon}\\[1ex]
\texttt{angle=45,viewport=20 20 60 75,clip}
\end{center}


\begin{center}\ifpreview\else\previewtrue\fi
\textbf{MathLab Graphics}\\[1ex]
\insertEPS[width=1in]{ex}
\insertEPS[width=1in,clip]{ex}
\insertEPS[width=1in,transparency={/ca .3}]{ex}\\[1ex]
\textsf{GraphicxSP}: left insert, middle clip, right 30\% transparency
\end{center}

\parbox{\linewidth}{%
\begin{center}
\includegraphics[width=1in]{graphics/example}
\includegraphics[width=1in,clip]{graphics/example}
\includegraphics[width=1in]{graphics/example}\\[1ex]
\textsf{Graphicx}: left include, middle clip, right include
\end{center}}

The bounding box for this graphic is \texttt{[\bboxOf{ex}]}.


\end{document}