[XeTeX] graphic special effects question
Wilfred van Rooijen
wvanrooijen at yahoo.com
Sat Feb 13 07:14:28 CET 2010
Hi Alan,
Maybe the following does what you want?
\documentclass[a4paper,11pt,article,final]{memoir}
\usepackage{lmodern}
\usepackage{bm}
\usepackage[]{tikz}
\usepackage[]{3dplot}
\usepackage{graphicx}
\usetikzlibrary{calc}
\pgfdeclarelayer{background}
\pgfsetlayers{background,main}
\begin{document}
\begin{tikzpicture}
\filldraw[thick,white,fill opacity=0.5] (1.0, 1.0) rectangle (2.0,2.0) ;
\begin{pgfonlayer}{background}
\includegraphics[width=5cm]{foo.jpg}
\end{pgfonlayer}
\end{tikzpicture}
\end{document}
You create a TikZ picture, with a transparent rectangle in the main layer, and you add a special background layer underneath the main layer to contain the photo.
Let us know if this is what you wanted!
Wilfred
--- On Sat, 13/2/10, Alan Hoenig <ezchinesey at gmail.com> wrote:
> From: Alan Hoenig <ezchinesey at gmail.com>
> Subject: [XeTeX] graphic special effects question
> To: xetex at tug.org
> Date: Saturday, 13 February, 2010, 4:28 AM
> I hope to be able to produce the following
> graphic effect from within XeTeX. If I include a photo
> (say) within a TeX document, I'd like to be able to
> superpose a smaller square 'filter' over a portion
> of it so that the original pic shows through, but appears
> lighter (or perhaps darker). That is, all the features of
> the original are present and visible but filtered by the
> overlay to appear darker or lighter than the surrounding
> portion of the photo. How can I do this? If there is no
> XeTeX solution, what is the best way to proceed. Thanks
> for any info!
>
>
> ---Alan Hoenig
>
>
> -----Inline Attachment Follows-----
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
> http://tug.org/mailman/listinfo/xetex
>
New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
More information about the XeTeX
mailing list