[NTG-context] colorizing pictures

Henning Hraban Ramm texml at fiee.net
Mon Mar 18 19:45:01 CET 2019


\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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190318/186ce4ab/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minidodo_b.png
Type: image/png
Size: 8188 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190318/186ce4ab/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minidodo_g.png
Type: image/png
Size: 48709 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190318/186ce4ab/attachment-0003.png>


More information about the ntg-context mailing list