0

I'd like to realize the Photographic diagram like you can see:

enter image description here

I've tried but I can't find the good program.Thank you for your help.

egreg
  • 1,121,712
  • 3
    Inkscape? Paint? You can code that stuff, but you will have to read a lot first. – Johannes_B Jan 08 '19 at 10:08
  • You could use a program called TikzEdit, which uses TikZ to render the image. As a result you require LaTeX to be installed on your computer. I would recommend using Inkscape if you only want to produce that image and are not typesetting a document. – sab hoque Jan 08 '19 at 10:22

1 Answers1

4

You do not need anything special for that. The only cumbersome part is to punch the texts in. Quite possible that I introduced typos, if so, sorry.

\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{decorations.markings}

\begin{document}
\tikzset{->-/.style={decoration={ % https://tex.stackexchange.com/a/39282/121799
  markings,
  mark=at position #1 with {\arrow{>}}},postaction={decorate}}}

\begin{tikzpicture}[font=\sffamily]
 \draw[very thick,fill=gray] (0,-0.5) |- (0.4,0.5) |- (3,2)
 node[pos=0.75,below]{Boitier} |- (0.4,-2) |- cycle;
 \path[fill=yellow] (-1.5,0.4) -| (0.3,0.3) -- (2.8,0) -- (0.3,-0.3) |-
 (-1.5,-0.4);
 \draw[fill=cyan] (0.1,-0.5) to[bend left=10] (0.1,0.5) to[bend left=10] cycle;
 \draw[->-=.5,thick] (-1.5,0.4) node[above]{Lumi\`{e}re} -- (0.3,0.4);
 \draw[->-=.5,thick] (-1.5,-0.4) -- (0.3,-0.4);
 \draw[->-=.5,thick] (0.3,0.5) coordinate(aux1) -- (0.3,0.3) -- (2.8,0);
 \draw[->-=.5,thick] (0.3,-0.5) -- (0.3,-0.3) -- (2.8,0);
 \draw[red,dashed,thick] (2.5,0.5) coordinate (aux2) -- (2.5,-0.5);
 \draw[thick] (2.8,0.5)  -- (2.8,-0.5) coordinate (aux3);
 \draw (aux1) -- ++ (-0.2,1.6) node[above left] {Diaphragme};
 \draw (0.1,0) -- ++ (-0.3,1) node[above left] {Optique};
 \draw (aux2) -- ++ (1,0.5) node[above right] {Obturateur};
 \draw (aux3) -- ++ (0.7,-0.5) node[below right,align=left] {Film ou\\ capteur};
 \draw (0.2,-0.5) -- ++ (-0.5,-0.5) node[below left]{Objectif};
\end{tikzpicture}
\end{document} 

enter image description here

  • No it's perfect and exactly what I needed. If need be, I would be scrambling to change things. Thank you. – Corentin Jan 08 '19 at 20:36