On 8/29/06, Henning Makholm
My concrete need is that I edit bitmaps with a specific color
convention - they can be seen e.g. at <http://dk.trackmap.net/a>. I
use a system of ad-hoc software to convert the bitmap source to the
vector versions linked to below the image; this software depends on
the exact colormap in the picture, because different colors should be
vectorized in different ways.
This need could be solved using layer-masks and threshold. Or to
attack the problem with an unstable dialect of xml:
<image width='751' height='650'>
<layers>
<layer name='brown'>
<layer mode='apply_mask'>
<filter mode='threshold'>
<grayscalelayer/>
</layer>
<layer color='rgb(0.5,0.5,0.2)'/>
<layer name='blue'>
<layer mode='apply_mask'>
<filter mode='threshold'>
<grayscalelayer/>
</layer>
<layer color='rgb(0.0,0.0,1.0)'/>
<layer name='violet'>
<layer mode='apply_mask'>
<filter mode='threshold'>
<grayscalelayer/>
</layer>
<layer color='rgb(0.0,1.0,1.0)'/>
<layer name='black'>
<layer mode='apply_mask'>
<filter mode='threshold'>
<grayscalelayer/>
</layer>
<layer color='rgb(0.0,0.0,0.0)'/>
<layer name='green'>
<layer mode='apply_mask'>
<filter mode='threshold'>
<grayscalelayer/>
</layer>
<layer color='rgb(0.0,1.0,0.0)'/>
<layer name='red'>
<layer mode='apply_mask'>
<filter mode='threshold'>
<grayscalelayer/>
</layer>
<layer color='rgb(1.0,0.0,0.0)'/>
</layer>
<layer color='rgb(1.0,1.0,1.0)'/>
</layer>
</image>
/Øyvind K.
--
«The future is already here. It's just not very evenly distributed»
-- William Gibson
http://pippin.gimp.org/ http://ffii.org/
_______________________________________________
Gimp-developer mailing list
[email protected]
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer