Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage{tikz}
- usepackage{graphicx}
- begin{document}
- begin{tikzpicture}
- begin{scope}
- clip [rounded corners=.5cm] (0,0) rectangle coordinate (centerpoint) (5,7.5cm);
- node [inner sep=0pt] at (centerpoint) {includegraphics[width=6.0cm]{EiffelTall.jpg}};
- end{scope}
- begin{scope}[xshift=7cm]
- clip [rounded corners=.5cm] (0,0) rectangle coordinate (centerpoint) ++(5cm,7.5cm);
- node [inner sep=0pt] at (centerpoint) {includegraphics[width=10.0cm]{EiffelTall.jpg}};
- end{scope}
- end{tikzpicture}
- end{document}
- documentclass{article}
- usepackage{tikz}
- usepackage{graphicx}
- newcommand*{ClipSep}{0.4cm}%
- begin{document}
- includegraphics[width=5.0cm]{images/EiffelTall.jpg}
- %
- begin{tikzpicture}
- node [inner sep=0pt] at (0,0) {includegraphics[width=5.0cm]{images/EiffelTall.jpg}};
- draw [white, rounded corners=ClipSep, line width=ClipSep]
- (current bounding box.north west) --
- (current bounding box.north east) --
- (current bounding box.south east) --
- (current bounding box.south west) -- cycle
- ;
- end{tikzpicture}
- end{document}
- defM{3}% columns
- defN{3}% rows
- defscale{1}% scale
- deffilename{herbert}% filename
- % Specify the cropping area.
- defL{-2}
- defB{-1.5}
- defR{2}
- defT{3}
- documentclass[pstricks,border=12pt]{standalone}
- defM{3}% columns
- defN{3}% rows
- defscale{1}% scale
- deffilename{herbert}% filename
- usepackage{graphicx}
- newsaveboxIBox
- saveboxIBox{includegraphics[scale=scale]{filename}}
- usepackage{pstricks}
- psset
- {
- xunit=0.5dimexprwdIBox/Mrelax,
- yunit=0.5dimexprhtIBox/Nrelax,
- }
- begin{document}
- % The following figure shows an image with a grid enabled.
- % Use the grid to find the cropping area.
- begin{pspicture}[showgrid=true](-M,-N)(M,N)
- rput(0,0){useboxIBox}
- end{pspicture}
- % Specify the cropping area.
- defL{-2}
- defB{-1.5}
- defR{2}
- defT{3}
- begin{pspicture}[showgrid=false](L,B)(R,T)
- begin{psclip}{psframe[linestyle=none,framearc=0.5,dimen=middle](L,B)(R,T)}
- rput(0,0){useboxIBox}
- end{psclip}
- end{pspicture}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement