Add filter plugin

Daniel Johannsen dj at danieljohannsen.de
Fri Aug 3 08:46:37 UTC 2012


Hi Krita development team,

i like to add a new filter plugin into Krita. Basically, it is a 
desaturation filter which preserves luminance information
when converting from rgb to grayscale. The algorithm constists of a 
simple linear combination of the rgb values
in order to derive the gray value.

As a quick (and dirty) feasibility study, i altered the source file 
/LcmsColorSpace.h/ by overwriting the method call

/cmsDoTransform(cmstransform, const_cast<quint8 *>(src), dst, nPixels);/

inside the method /transform/ in struct /KoLcmsColorTransformation/.

While this works and changes the color of the image in the way it 
supposed to, of course it is far from being
an incorporation of a new filter plugin into Krita.

Now,
how do i add a new filter plugin into Krita the right way?
Is there any documentation which explains how to write a filter plugin? 
(I found only one /Developing Krita Plugins/,
but it seems way out of date.)

Thanks and best regards
Daniel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20120803/4b7e9399/attachment.html>


More information about the kimageshop mailing list