答案1
纯乳胶方法:
\documentclass{beamer}
\usepackage[most]{tcolorbox}
\setbeamertemplate{background canvas}{%
\begin{tikzpicture}[inner sep=0pt,remember picture,overlay]
\node at (current page.center) {\includegraphics[height=\paperheight]{jwst}};
\end{tikzpicture}
}
\usepackage{tikzpagenodes}
\def\myblur{4}
\makeatletter
\newtcolorbox{blur}[1][]{%
#1,
enhanced,
remember,
frame hidden,
interior hidden,
fonttitle=\bfseries,
coltitle=black,
underlay={
\begin{tcbclipframe}
\begin{scope}[remember picture,overlay,inner sep=0pt]
\fill[white] (current page.south west) rectangle (current page.north east);
\foreach \x in {-10,-7.5,...,10}{
\foreach \y in {-10,-7.5,...,10}{
\node[opacity=0.01] at ([yshift=\y,xshift=\x]current page.center) {\includegraphics[height=\paperheight]{jwst}};
}}
\end{scope}
\end{tcbclipframe}
}
}
\makeatother
\begin{document}
\begin{frame}
\begin{blur}[
title={My title},
]
some test
\end{blur}
\end{frame}
\end{document}
(示例图片取自https://webbtelescope.org/contents/news-releases/2022/news-2022-031)
如果您已经有了背景的模糊版本:
\documentclass{beamer}
\usepackage[most]{tcolorbox}
\setbeamertemplate{background canvas}{%
\begin{tikzpicture}[inner sep=0pt,remember picture,overlay]
\node at (current page.center) {\includegraphics[height=\paperheight]{jwst}};
\end{tikzpicture}
}
\usepackage{tikzpagenodes}
\def\myblur{4}
\makeatletter
\newtcolorbox{blur}[1][]{%
#1,
enhanced,
remember,
frame hidden,
interior hidden,
fonttitle=\bfseries,
coltitle=black,
underlay={
\begin{tcbclipframe}
\begin{scope}[inner sep=0pt,remember picture,overlay]
\fill[white] (current page.south west) rectangle (current page.north east);
\node[opacity=0.9] at (current page.center) {\includegraphics[height=\paperheight]{blured}};
\end{scope}
\end{tcbclipframe}
}
}
\makeatother
\begin{document}
\begin{frame}
\begin{blur}[
title={My title},
]
some test
\end{blur}
\end{frame}
\end{document}