\documentclass{article} \usepackage{graphicx} % to include images \usepackage{tikz} % TikZ for drawing \begin{document} % One straightforward way to place an image inside a tikzpicture is to use node with the includegraphics command: \fbox{ \begin{tikzpicture} \node[anchor=south west, inner sep=0 cm] (img) at (0,0) {\includegraphics[width=10cm]{example-image.png}}; \end{tikzpicture} } \end{document}
|
Il y a deux raisons à cela :
Exemple : \documentclass{article} \usepackage{graphicx} % to include images \usepackage{tikz} % TikZ for drawing \begin{document} % One straightforward way to place an image inside a tikzpicture is to use node with the includegraphics command: \setlength{\fboxsep}{0cm} \fbox{% \begin{tikzpicture} \node[anchor=south west,outer sep=0cm, inner sep=0cm] (img) at (0,0) {\includegraphics[width=10cm]{example-image.png}}; \end{tikzpicture}% } \end{document} |