
On Thu, 2008-07-24 at 10:26 -0400, heathenx wrote:
I am interested in adding a couple more effects the the already existing raster effects. It's more or less just for myself since I don't have the chops to contribute anything of value to anyone else. I'm not sure what I'm biting off at this point. It might be easy or it might be extremely hard to do. My coding skills are very limited (meaning I have none). Are the raster effects part of the main source code or are they broken out into smaller "extensionized" chunks somewhere? I think modifying an existing effect into something else might be a good starting point for me...if possible.
The raster effects are extensions, but they are written in C. You can find all of the code for them in:
/src/extension/internal/bitmap/
Specifically I think you should look at something like:
adaptiveThreshold.cpp
You'll see that Chris has pushed most of the code into the superclass, so if you inherit, you'll just end up with a call to applyEffect with the ImageMagick Image object. Then you can call any of the ImageMagick commands on that image. Chris has implemented all the ones that are "one call" with all their parameters. There's lots of room for more.
--Ted