Tikz - destacando parte da imagem em ambiente que não seja de minipágina

Tikz - destacando parte da imagem em ambiente que não seja de minipágina

Com relação a essas duas questõesTikz - três fotos em duas páginas no modo paisagemeTikz - destaque o texto em uma imagem, eu me esforço para reunir as soluções fornecidas (que funcionam bem para mim) para destacar uma parte da imagem A.

O contexto é que tenho duas páginas (A4 no modo paisagem) com três fotos, enquanto uma no meio ocupa ambas as páginas. Agora gostaria de destacar uma parte da primeira foto, mas não consegui destacar a parte desejada e reduzir o restante para um preto opaco.

Este é o meu código:

\documentclass{article}
\usepackage[margin=0cm, top=0cm, bottom=0cm, outer=0cm, inner=0cm, landscape, a4paper]{geometry}
\pagestyle{empty}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[overlay,remember picture]
\pgfmathsetmacro{\mywidth}{2*\paperwidth/3-1cm} % kept local
\node at ([xshift=-\paperwidth/6-1cm]current page.center){%
    \includegraphics[width=\mywidth pt,height=\paperheight]{example-image-a}};
    \begin{scope}[x={(image.south east)},y={(image.north west)}]
        \fill[even odd rule,opacity=0.4]
        (0.11,0.4) -- (0.37,0.404) --  (0.37,0.414) -- (0.11,0.41) -- cycle
        (0,0) rectangle (1,1);
    \end{scope}
\node at (current page.east){%
    \includegraphics[width=\mywidth pt,height=\paperheight]{example-image-b}};
\end{tikzpicture}
~
\clearpage
\begin{tikzpicture}[overlay,remember picture]
\pgfmathsetmacro{\mywidth}{2*\paperwidth/3-1cm} % kept local
\node (image) at ([xshift=\paperwidth/6+1cm]current page.center){%
    \includegraphics[width=\mywidth pt,height=\paperheight]{example-image-c}};
\node at (current page.west){%
    \includegraphics[width=\mywidth pt,height=\paperheight]{example-image-b}};
\end{tikzpicture}
\end{document}

Presumo que não consigo destacar partes da imagem porque ela não está em ambiente de minipágina. O que posso fazer?

Responder1

Se eu adicionar o nome do nó ausente (image), recebo

\documentclass{article}
\usepackage[margin=0cm, top=0cm, bottom=0cm, outer=0cm, inner=0cm, landscape, a4paper]{geometry}
\pagestyle{empty}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[overlay,remember picture]
\pgfmathsetmacro{\mywidth}{2*\paperwidth/3-1cm} % kept local
\node (image) at ([xshift=-\paperwidth/6-1cm]current page.center){%
    \includegraphics[width=\mywidth pt,height=\paperheight]{example-image-a}};
    \begin{scope}[x={(image.south east)},y={(image.north west)}]
        \fill[even odd rule,opacity=0.4]
        (0.11,0.4) -- (0.37,0.404) --  (0.37,0.414) -- (0.11,0.41) -- cycle
        (0,0) rectangle (1,1);
    \end{scope}
\node at (current page.east){%
    \includegraphics[width=\mywidth pt,height=\paperheight]{example-image-b}};
\end{tikzpicture}
~
\clearpage
\begin{tikzpicture}[overlay,remember picture]
\pgfmathsetmacro{\mywidth}{2*\paperwidth/3-1cm} % kept local
\node (image) at ([xshift=\paperwidth/6+1cm]current page.center){%
    \includegraphics[width=\mywidth pt,height=\paperheight]{example-image-c}};
\node at (current page.west){%
    \includegraphics[width=\mywidth pt,height=\paperheight]{example-image-b}};
\end{tikzpicture}
\end{document}

insira a descrição da imagem aqui

Como meubola de cristalfoi roubado, não sei se essa é a parte que você queria destacar. ;-)

informação relacionada