[Tex/LaTex] How to set the background of a slide with a background image

beamercolor

I have a background image for one of my slides which is partially transparent. I'd like to set the background color for this slide to black, but it does not work.

Example:

\documentclass{beamer}

\begin{document}
{
\setbeamercolor{background canvas}{bg=black}
\setbeamertemplate{background canvas}{\includegraphics[height=\paperheight]{muon1.png}}
\begin{frame}[plain]
\end{frame}
}
\end{document}

muon1.png

Best Answer

Simply use the background template for the image and background canvas for the black background:

\documentclass{beamer}

\begin{document}
{
\setbeamercolor{background canvas}{bg=black}
\setbeamertemplate{background}{\includegraphics[height=\paperheight]{muon1.png}}
\begin{frame}[plain]
\end{frame}
}
\end{document}

enter image description here