答案1
使用 tikz这个问题Marijn 在评论中给我提供了链接,并按照[fill=white]
John Kormylo 的建议,我解决了这样的问题;
\begin{tikzpicture}
\node[anchor=south west,inner sep=0] (image) at (0,0) {\includegraphics[scale=0.2]{giffrommyquestion}};
\begin{scope}[x={(image.south east)},y={(image.north west)}]
\node [fill=white,scale = .9] at (.48,.32) {$|0]\langle0|$};
\node [fill=white,scale = .9] at (.48,.15) {$\alpha|4]\langle1|$};
\end{scope}
\end{tikzpicture}