Easy layer access for rgb8 filters.
Michael Thaler
michael.thaler at ph.tum.de
Sun Jan 16 22:12:10 CET 2005
On Sunday 16 January 2005 16:40, Boudewijn Rempt wrote:
> Actually, the easiest way to prepare a line of data for the
> ported filters would be to use the convertToQImage method
> from KisPaintDevice for a block one pixel high and as wide
> as the image, filter that, and use the fromQImage method to
> create a paint device and bitBlt that back onto the original
> layer. And it might well be the fastest way, too.
>
> QImage offers a pointer to its image data, so that's easy, too.
Sounds good. I will try that.
By the way, shouldn't the functions
convertFromImage
convertToQImage
in kis_paint_device named consistantly? I did not fix this, because I did not
write these functions and I am not sure wether convertFromImage or
convertFromQImage is better.
Michael
More information about the kimageshop
mailing list