\documentclass{standalone} \usepackage[UTF8]{ctex} \usepackage{onimage} \begin{document} %\begin{tikzonimage}[width=0.3\textwidth]{20181206131152.jpg}[color=red] %\fill (0.2,0.3) circle [radius=2pt]; %\node at (0.2,0.3) [text width=2em,xshift=-0mm] {\scriptsize $\varepsilon$}; %\end{tikzonimage} \begin{tikzonimage}[width=0.3\textwidth]{figex.jpg}[color=red,tsx/show help lines] \draw (.72,.75) rectangle (.88,.99); \draw[->,white] (.93,.6) -- (.90,.73); \node at (.93,.55) [white] {\heiti\zihao{7} 预测}; \draw [green] (.7,.73) rectangle (.86,.99); \draw[->,white] (.7,.6) -- (.7,.73); \node at (.7,.55) [white,xshift=-0mm] {\heiti\zihao{7} 实际}; \node at (.078,.595) [inner sep=0.2pt,fill=blue,rectangle,text=white] {\ttfamily\zihao{8}Car}; \draw [blue] (.04,.01) rectangle (.54,.57); \end{tikzonimage} \end{document}
下载区
本站下载:onimage-demo.zip
扩展阅读:https://texwelt.de/wissen/fragen/3201/tikzonimage-bilder-exportieren
https://tex.stackexchange.com/questions/9559/drawing-on-an-image-with-tikz
发表评论 取消回复