From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93442 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: invert colors in \externalfigure Date: Wed, 20 Jan 2016 13:19:29 +0100 Message-ID: <569F7B51.6030401@gmail.com> References: <569F792F.5030701@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7064454438161282099==" X-Trace: ger.gmane.org 1453292406 31921 80.91.229.3 (20 Jan 2016 12:20:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jan 2016 12:20:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 20 13:19:55 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aLrjt-0004Fg-DQ for gctc-ntg-context-518@m.gmane.org; Wed, 20 Jan 2016 13:19:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F34D86120; Wed, 20 Jan 2016 13:19:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a0H_fhXyDr1T; Wed, 20 Jan 2016 13:19:44 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 44E62613F; Wed, 20 Jan 2016 13:19:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 392CB6120 for ; Wed, 20 Jan 2016 13:19:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Kz_4lub5wMF for ; Wed, 20 Jan 2016 13:19:42 +0100 (CET) Original-Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 7170C6058 for ; Wed, 20 Jan 2016 13:19:32 +0100 (CET) Original-Received: by mail-wm0-f45.google.com with SMTP id r129so128736722wmr.0 for ; Wed, 20 Jan 2016 04:19:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=va99y0yodgZUvE0gDhYYCWhQ9VumgJRe8TcgKOZoEDA=; b=KbJgoRC8cDcfUtr1R0LGdwWgJvpw50J2KjaQ9cgsBT3PwSww8PxzfZHvfYe6bAoUkr /OQD07y6oE92uKSy/ra43SfwwccYJsslt3YQhh6ofPZbCPVjxSUsLQRrb7SbifIm7lZd M8RNe6c/1hX6W7e32E9gkqSHdSL4lCLDBKy5wDt9DCp66N/rKl0xtpz+4i5dqltF+aRt 34EYAtbe9+2X7H2u2tCl0msqUv27MjlsMUMy89JwtA9qDYKBIbH/JBjQwUdVfJnt6PZA JFeUag/mrWBPqIxFaD6lErCtkDWdXQAWNNk5Jfcxv8NleUrVv0KUdqrvXOGibbuM20O5 SEZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=va99y0yodgZUvE0gDhYYCWhQ9VumgJRe8TcgKOZoEDA=; b=DOLuviXyqS2eMZARSi2PXU7znyjKboz0dqDRm5fgPHpWVV9J8PiEviLrH0RX3TvoS2 IRGVgGbZZNV8halkQQBgKGoBqSOFjR2eCor7wSh8dmm7pF03wh9OYU0R9Y6N4wpFDO/d 3AKYpadXdbyn/hv5hP34KKJtDEpS6jeUO7TYw2/i1ptNPWKvaRmVJ90h4iNw6fj/C6tZ YJ2gn/rnJJYDS48RC39ZaIGoMD5VuA1IuOilnqgKgWeV3r2REl2tg4d/hsOkljj7qLnb CNa6C5EPKpoC/OUdy2I/7zft/1hXZU8t/3/Jc2NGEzQZGBBs4ndaaCAsTFw+pZkMJ6ZC iu+Q== X-Gm-Message-State: AG10YORS3EBSX4rJewrCvF7/8SCq536hltR+t4K9Putm9tku4/zaJ63bKMCvw6AZrdbzRQ== X-Received: by 10.28.136.148 with SMTP id k142mr3849326wmd.41.1453292372180; Wed, 20 Jan 2016 04:19:32 -0800 (PST) Original-Received: from keima.localdomain (x2f268fc.dyn.telefonica.de. [2.242.104.252]) by smtp.gmail.com with ESMTPSA id 79sm24962527wmo.7.2016.01.20.04.19.31 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Jan 2016 04:19:31 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <569F792F.5030701@gmx.es> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:93442 Archived-At: This is a multi-part message in MIME format. --===============7064454438161282099== Content-Type: multipart/alternative; boundary="------------040303080509080803050502" This is a multi-part message in MIME format. --------------040303080509080803050502 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Pablo Rodriguez > 20. Januar 2016 um 13:10 > Dear list, > > I have the following sample: > > \setuppapersize[A6] > \setuplayout[width=middle] > \starttext > \startmakeup[standard][align=center] > \dontleavehmode\externalfigure[cow][width=\textwidth] > \stopmakeup > \stoptext > > How can I invert the colors in the external figure without having to > edit the image file? > > Many thanks for your help, You have to use the Adobe Reader to view the PDF. \setupexternalfigure[location=default] \starttext \externalfigure[cow][width=\textwidth] \startnegative \externalfigure[cow][width=\textwidth] \stopnegative \startnegative \externalfigure[cow][background=color,backgroundcolor=white,width=\textwidth] \stopnegative \stoptext Wolfgang --------------040303080509080803050502 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
20. Januar 2016 um 13:10
Dear list,

I have the following sample:

\setuppapersize[A6]
\setuplayout[width=middle]
\starttext
\startmakeup[standard][align=center]
\dontleavehmode\externalfigure[cow][width=\textwidth]
\stopmakeup
\stoptext

How can I invert the colors in the external figure without having to
edit the image file?

Many thanks for your help,
You have to use the Adobe Reader to view the PDF.

\setupexternalfigure[location=default]

\starttext

\externalfigure[cow][width=\textwidth]

\startnegative
\externalfigure[cow][width=\textwidth]
\stopnegative

\startnegative
\externalfigure[cow][background=color,backgroundcolor=white,width=\textwidth]
\stopnegative

\stoptext

Wolfgang
--------------040303080509080803050502-- --===============7064454438161282099== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============7064454438161282099==--