ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Watermark is behind \externalfigure
@ 2019-12-27  3:13 Jon Wong
  2019-12-27  9:01 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Wong @ 2019-12-27  3:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Any way to put the watermark in front?
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Watermark is behind \externalfigure
  2019-12-27  3:13 Watermark is behind \externalfigure Jon Wong
@ 2019-12-27  9:01 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2019-12-27  9:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Jon Wong schrieb am 27.12.2019 um 04:13:
> Any way to put the watermark in front?

You can use the foreground to flush the content in a frame and place 
then your layer on top of it.


\definecolor [Watermark] [s=1,a=1,t=0.5]

% \defineoverlay
%   [watermark]
% 
[{\backgroundimage{1}{\overlaywidth}{\overlayheight}{\color[Watermark]{\CONTEXT}}}]

\defineoverlay
   [watermark]
   [{\scale[factor=fit]{\color[Watermark]{\CONTEXT}}}]

\setupexternalfigure[location=default]

\starttext
\externalfigure[mill][background={foreground,watermark}]
\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-27  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-27  3:13 Watermark is behind \externalfigure Jon Wong
2019-12-27  9:01 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).