如何在投影機幻燈片中顯示影像的圓圈部分?

如何在投影機幻燈片中顯示影像的圓圈部分?

在此輸入影像描述

我只想在幻燈片中顯示圖像的圓圈部分。

在此輸入影像描述

我知道可以透過將圖像編輯為圓形圖像來實現。但是,我想知道LaTeX是否有這個功能。

答案1

這是一個例子。

\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
\frametitle{How to clip a picture?}
\begin{overlayarea}{\textwidth}{\textheight}
\begin{tikzpicture}
\clip (0,0) ellipse (3 and 3);
% \clip (0,0) rectangle +(5,3); for crop in rectangle
% \clip (0,0) circle (3); for crop in circle
\node at (0.8,-3) {\includegraphics{Logo3.png}}; %<-you'll need to adjust these
% coordinates, I do not have your original picture
\end{tikzpicture}
\end{overlayarea}
\end{frame}
\end{document}

在此輸入影像描述

更新:我忘了提及,您可能想調整圖形的比例。

\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
\frametitle{How to clip a picture?}
\begin{overlayarea}{\textwidth}{\textheight}
\begin{tikzpicture}
\clip (0,0) ellipse (3 and 2.8);
\node at (0.62,-3) {\includegraphics[scale=0.75]{Logo3.png}}; %<-you'll need to adjust these
% coordinates, I do not have your original picture
\end{tikzpicture}
\end{overlayarea}
\end{frame}
\end{document}

在此輸入影像描述

相關內容