summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/graphicxsp/grxsp_comp_aeb.tex
blob: f372522207002d5505d184c6daed449bd8164b2c (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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
\documentclass{article}
% the driver is not listed here, we assume web.cfg
% lists \ExecuteOptions{dvips} or \ExecuteOptions{dvipsone}
% Standard_transparency.joboptions required to distill this file
\usepackage[designiv,usetemplates,nodirectory]{web}
\usepackage[preview]{graphicxsp}


\title{\texorpdfstring{\textsf{GraphicxSP}\\\textsf{Graphicx} versus \textsf{GraphicxSP}}
    {GraphicxSP: Graphicx versus GraphicxSP}}
\author{D. P. Story}
\university{Acro\negthinspace\TeX.Net}
\email{dpstory@acrotex.net}
\subject{Form XObjects and BP, EP and SP operators, transparency}
\keywords{Distiller, Form XObjects, BP, EP, and SP operators,transparency}

\newcommand{\cs}[1]{\texttt{\char`\\#1}}

\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}

\goodbreak

\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.

\newpage

\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}

\newpage

\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.

\newpage

\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}

\newpage

\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}

\newpage

\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}

\newpage

\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}

\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{[\llxOf{ex}\space\llyOf{ex}\space\urxOf{ex}\space\uryOf{ex}]}.


\end{document}

The bounding box for this graphic is
\texttt{[\llxOf{ex}\space\llyOf{ex}\space\urxOf{ex}\space\uryOf{ex}]}.
The figure in the middle has been clipped using its bounding box (the \texttt{clip} option
of \cs{includegraphics/\cs{insertEPS}}), the
one on the right has 30\% opacity and has not been clipped.

\margins{.25in}{.25in}{24pt}{.25in} % left,right,top, bottom
\screensize{5in*\real{0.75}}{5in} % height, width