ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: colorizing pictures
Date: Mon, 18 Mar 2019 19:45:01 +0100	[thread overview]
Message-ID: <CEED9884-6A19-4229-96B0-B75DB6A21CCD@fiee.net> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 618 bytes --]

\externalfigure has a "color" parameter. It used to be possible to colorize greyscale pictures with that, but it doesn’t work any more:

%%%
\setupcolors[state=start]
\setupexternalfigures[
    location={local,global,default},
]

\starttext

\externalfigure[img/minidodo_g][width=.3\textwidth,color=red] % greyscale
\externalfigure[img/minidodo_b][width=.3\textwidth,color=green] % bitmap
\externalfigure[cow][width=.3\textwidth,color=blue] % vector

\stoptext
%%%


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD


[-- Attachment #1.2.1: Type: text/html, Size: 1384 bytes --]

[-- Attachment #1.2.2: minidodo_b.png --]
[-- Type: image/png, Size: 8188 bytes --]

[-- Attachment #1.2.3: minidodo_g.png --]
[-- Type: image/png, Size: 48709 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2019-03-18 18:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-18 18:45 Henning Hraban Ramm [this message]
2019-03-19 12:23 ` Hans Hagen
2019-03-19 15:23   ` Henning Hraban Ramm
2019-03-19 15:34     ` Hans Hagen
2019-03-19 17:54       ` Henning Hraban Ramm
2019-03-19 22:23         ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CEED9884-6A19-4229-96B0-B75DB6A21CCD@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).