Heute schauen wir uns einmal etwas ganz anderes an…
Wer sich fragt, was man mit dem Bild unten mit TikZ alles machen kann, klicke auf Weiterlesen.
Eine gute und einfache Beschreibung fand ich hier (danke an Bettina).
Es wird das Paket onimage.sty verwendet, im o.g. Link steht, wo man es runterladen kann und wie man es installiert. Es ist auch ein kurzes Handbuch dabei (es enthält ein paar Schreibfehler). Auch findet man im o.g. Link die benötigte Bilddatei PRODPIC-1461.jpg
Je nachdem, ob man in folgendem Beispiel die Zeile
[tsx/show help lines]
auskommentiert, erhält man:
\documentclass[margin=5pt]{standalone}
%\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{selinput}
\SelectInputMappings{adieresis={ä}, germandbls={ß}}
\usepackage{onimage}
\begin{document}
\tikzset{every path/.append style={ultra thick, rounded corners}}
\begin{tikzonimage} [width=.75\textwidth]{PRODPIC-1461.jpg}
[tsx/show help lines]
\sffamily
\draw[red, rotate around={-15:(0.265,0.3)}] (0.03, 0.175) rectangle
node[fill=white,rounded corners, fill opacity=.5, text opacity=1,rotate=-15] {Tastatur} (0.5,0.45);
\node[white] at (0.7, 0.8) {Lampe};
\node[align=left, text=red, fill=white,rounded corners, fill opacity=.5, text opacity=1] at (0.45, 0.0) {Schreibblock \\ mit Klebestreifenblättern};
\node[align=left, text=red, fill=white,rounded corners, fill opacity=.5, text opacity=1, rotate=75] at (0.8, 0.15) {Telefon};
\node[align=left, text=red, fill=white,rounded corners, fill opacity=.8, text opacity=1] at (0.125, 0.8) {Ein oller \\PC};
\node[align=left, text=red, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] at (0.125, 0.8) {Ein oller \\PC};
\draw[<-, gray!80, opacity=.8] (0.5,0.625) — (0.6,1.05);
\draw[<-, gray!80, opacity=.8] (0.475,0.905) — (0.575,1.05) node[above, align=left, text=red, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] {Dekorations-Tiere};
\node[align=left, text=red, fill=white,rounded corners, fill opacity=.8, text opacity=1] at (0.5, 0.45) {Kaffeetasse};
\draw[gray!80, opacity=.8] (0.6,0.6) — (1.0,0.4) node[below, align=left, text=red, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] {Riesige \\ Speicher- \\ medien};
\node[align=left, text=red, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] at (1.05, 0.6) {Schnellhefter, \\ Ordner und \\ Blätter};
\node[circle, draw, thin, align=left, text=red!60!black, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] at (0.95, 1.0) {\texttt{\textbf{onimage.sty}}};
\draw[<-, gray!80, opacity=.8] (0.2,0.1) — (0.1,-0.05) node[below, align=left, text=red, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] {Schreibgeräte};
\end{tikzonimage}
\end{document}
%\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{selinput}
\SelectInputMappings{adieresis={ä}, germandbls={ß}}
\usepackage{onimage}
\begin{document}
\tikzset{every path/.append style={ultra thick, rounded corners}}
\begin{tikzonimage} [width=.75\textwidth]{PRODPIC-1461.jpg}
[tsx/show help lines]
\sffamily
\draw[red, rotate around={-15:(0.265,0.3)}] (0.03, 0.175) rectangle
node[fill=white,rounded corners, fill opacity=.5, text opacity=1,rotate=-15] {Tastatur} (0.5,0.45);
\node[white] at (0.7, 0.8) {Lampe};
\node[align=left, text=red, fill=white,rounded corners, fill opacity=.5, text opacity=1] at (0.45, 0.0) {Schreibblock \\ mit Klebestreifenblättern};
\node[align=left, text=red, fill=white,rounded corners, fill opacity=.5, text opacity=1, rotate=75] at (0.8, 0.15) {Telefon};
\node[align=left, text=red, fill=white,rounded corners, fill opacity=.8, text opacity=1] at (0.125, 0.8) {Ein oller \\PC};
\node[align=left, text=red, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] at (0.125, 0.8) {Ein oller \\PC};
\draw[<-, gray!80, opacity=.8] (0.5,0.625) — (0.6,1.05);
\draw[<-, gray!80, opacity=.8] (0.475,0.905) — (0.575,1.05) node[above, align=left, text=red, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] {Dekorations-Tiere};
\node[align=left, text=red, fill=white,rounded corners, fill opacity=.8, text opacity=1] at (0.5, 0.45) {Kaffeetasse};
\draw[gray!80, opacity=.8] (0.6,0.6) — (1.0,0.4) node[below, align=left, text=red, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] {Riesige \\ Speicher- \\ medien};
\node[align=left, text=red, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] at (1.05, 0.6) {Schnellhefter, \\ Ordner und \\ Blätter};
\node[circle, draw, thin, align=left, text=red!60!black, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] at (0.95, 1.0) {\texttt{\textbf{onimage.sty}}};
\draw[<-, gray!80, opacity=.8] (0.2,0.1) — (0.1,-0.05) node[below, align=left, text=red, fill=gray!50,rounded corners, fill opacity=.8, text opacity=1] {Schreibgeräte};
\end{tikzonimage}
\end{document}
Ein weiteres Beispiel ist das hier (Achtung Schleichwerbung):
\documentclass[margin=5pt]{standalone}
%\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{selinput}
\SelectInputMappings{adieresis={ä}, germandbls={ß}}
\usepackage{onimage}
\begin{document}
%\tikzset{every path/.append style={ultra thick, rounded corners}}
\begin{tikzonimage} [width=.9\textwidth]{DeLonghiF26237.jpg}
%[tsx/show help lines, font=\sffamily]
\sffamily
%rotate around={-15:(0.265,0.3)}
\draw[red, thin] (0.38, 0.05) rectangle (0.6,0.195) node[below=5mm , midway, fill=gray!50,rounded corners, fill opacity=.5, text opacity=1,rotate=0, text=blue] {Netzteil};
\node[fill=gray!50,rounded corners,fill opacity=.5, text opacity=1, text=blue] at (0.825, 0.5) {Ölbehälter};
\node[fill=gray!50,rounded corners, text=blue] at (0.5, 0.55) {Gehäuse \& Deckel};
\node[fill=gray!50, rounded corners, text=blue] at (0.25, 0.35) {Frittiergut-Korb};
\node[fill=gray!50,rounded corners, text=blue] at (0.2, 0.75) {DeLonghi F26237};
\end{tikzonimage} \\
\begin{tikzonimage} [width=.5\textwidth]{DeLonghiF26237.jpg}[tsx/show help lines, font=\sffamily]
%rotate around={-15:(0.265,0.3)}
\draw[red, thin] (0.38, 0.05) rectangle (0.6,0.195) node[below=5mm , midway, fill=gray!50,rounded corners, fill opacity=.5, text opacity=1,rotate=0, text=blue] {Netzteil};
\node[fill=gray!50,rounded corners,fill opacity=.5, text opacity=1, text=blue] at (0.825, 0.5) {Ölbehälter};
\node[fill=gray!50, rounded corners, text=blue] at (0.5, 0.55) {Gehäuse \& Deckel};
\node[fill=gray!50, rounded corners, text=blue] at (0.25, 0.35) {Frittiergut-Korb};
%Frittiergut
\node[align= center, fill=gray!50,rounded corners, text=blue] at (0.5, 1.25) {Bearbeitet mit \\ \Huge tikzonimage};
\end{tikzonimage}
\end{document}
%\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{selinput}
\SelectInputMappings{adieresis={ä}, germandbls={ß}}
\usepackage{onimage}
\begin{document}
%\tikzset{every path/.append style={ultra thick, rounded corners}}
\begin{tikzonimage} [width=.9\textwidth]{DeLonghiF26237.jpg}
%[tsx/show help lines, font=\sffamily]
\sffamily
%rotate around={-15:(0.265,0.3)}
\draw[red, thin] (0.38, 0.05) rectangle (0.6,0.195) node[below=5mm , midway, fill=gray!50,rounded corners, fill opacity=.5, text opacity=1,rotate=0, text=blue] {Netzteil};
\node[fill=gray!50,rounded corners,fill opacity=.5, text opacity=1, text=blue] at (0.825, 0.5) {Ölbehälter};
\node[fill=gray!50,rounded corners, text=blue] at (0.5, 0.55) {Gehäuse \& Deckel};
\node[fill=gray!50, rounded corners, text=blue] at (0.25, 0.35) {Frittiergut-Korb};
\node[fill=gray!50,rounded corners, text=blue] at (0.2, 0.75) {DeLonghi F26237};
\end{tikzonimage} \\
\begin{tikzonimage} [width=.5\textwidth]{DeLonghiF26237.jpg}[tsx/show help lines, font=\sffamily]
%rotate around={-15:(0.265,0.3)}
\draw[red, thin] (0.38, 0.05) rectangle (0.6,0.195) node[below=5mm , midway, fill=gray!50,rounded corners, fill opacity=.5, text opacity=1,rotate=0, text=blue] {Netzteil};
\node[fill=gray!50,rounded corners,fill opacity=.5, text opacity=1, text=blue] at (0.825, 0.5) {Ölbehälter};
\node[fill=gray!50, rounded corners, text=blue] at (0.5, 0.55) {Gehäuse \& Deckel};
\node[fill=gray!50, rounded corners, text=blue] at (0.25, 0.35) {Frittiergut-Korb};
%Frittiergut
\node[align= center, fill=gray!50,rounded corners, text=blue] at (0.5, 1.25) {Bearbeitet mit \\ \Huge tikzonimage};
\end{tikzonimage}
\end{document}
Comments
2 responses to “Externe Bilder mit TikZ bearbeiten”
Das Paket callouts das seit dem 16.03.2017 auf CTAN verfügbar ist ermöglicht ebenfalls das einfache beschriften von bildern.
Kenne ich noch gar nicht. Schau ich mir mal an.