Weird bug with cloning paint device
Cyrille Berger
cberger at cberger.net
Thu Jun 1 23:25:57 CEST 2006
Hi,
I have a weird bug when cloning paint device (in koffice 1.5)
Here are the code :
KisAutobrushShape* kas = new KisAutobrushCircleShape(size, size , halfSize,
halfSize);
QImage mask;
kas->createBrush(&mask);
KisKernelSP kernel = KisKernel::fromQImage(mask);
KisPaintDeviceSP interm = new KisPaintDevice(*src);
KisConvolutionPainter painter( interm );
painter.applyMatrix(kernel, rect.x(), rect.y(), rect.width(), rect.height(),
BORDER_REPEAT);
where src is a paint device used in a KisFilter::process(KisPaintDeviceSP src,
KisPaintDeviceSP dst, KisFilterConfiguration* config, const QRect& rect)
And this doesn't work correctly, the blured result is a little bit wrong, but
if I do the same thing but with KisConvolutionPainter painter( src ); then
src contains a correctly blurred paint device.
Anyone has an idea ?
--
--- Cyrille Berger ---
More information about the kimageshop
mailing list