Sujet : Re: is there an image package that doesn't require Tk ?
De : avl (at) *nospam* logic.at (Andreas Leitgeb)
Groupes : comp.lang.tclDate : 03. Jul 2024, 17:53:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <slrnv8b0fr.3gvbf.avl@logic.at>
References : 1 2 3 4 5 6 7
User-Agent : slrn/1.0.3 (Linux)
A big THANK YOU!!
greg <
gregor.ebbing@gmx.de> wrote:
Querying "pixels" just didn't do anything visible with an
empty "map"-argument, and segfaulted with whatever else I
tried for that argument. Maybe I read the docs not well enough..
set extracted_pixels [$wand GetPixels 10 5 80 10 "RGB" char]
This was the key...
Seeing "GetPixels" at work got me trying again...
I now just load the original pic into (GraphicsMagick-powered)
TclMagick0.46 and use GetPixels for the rectangles I need to
examine...
and it became like *5 times faster* than my previous approach
with calling "convert" and parsing it's output. :-)