I would like to have an arbitrary polygon filled with an image (jpg, png, pdf, ...) for it to be included in a beamer frame.
I was thinking this may be possible using tikz, but I couldn't figure it out.
Thanks in advance!
I would like to have an arbitrary polygon filled with an image (jpg, png, pdf, ...) for it to be included in a beamer frame.
I was thinking this may be possible using tikz, but I couldn't figure it out.
Thanks in advance!
Crop jpeg into circular tikz node is valid for any kind of node (rectangle, circle or any already defined shape), but you can also define irregular polygons with a clip path:
\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}{I'm watching you!}
\centering
\begin{tikzpicture}
\clip (-1,1)--++(-20:5cm)--++(75:4.5)--++(150:2cm)--++(200:3.5)--cycle;
\node at (2,2) {\includegraphics[width=6cm]{frog}};
\end{tikzpicture}
\end{frame}
\end{document}