Autolayer merge done
Michael Thaler
michael.thaler at ph.tum.de
Sat Jan 15 20:32:50 CET 2005
On Saturday 15 January 2005 20:17, Sven Langkamp wrote:
> At the moment extent() returns the width and height of a tile. Shouldn't
> that be the width and height of the paintdevice?
I don't think that it returns the size of a tile. I did the following:
void KisFilterInvert::process(KisPaintDeviceSP src, KisPaintDeviceSP dst,
KisFilterConfiguration* /*config*/, const QRect& rect, KisTileCommand* ktc)
{
Q_INT32 x, y, w, h;
src->extent(x,y,w,h);
kdDebug() << "x: " << x << " y:" << y << " w:" << w << " h:" << h <<
"\n";
...
}
Opening a 1600 x 1200 image gives:
krita: x: 0 y:0 w:1600 h:1216
Opening a 692 x 689 image gives:
krita: x: 0 y:0 w:704 h:704
I tried to fix some of the filters, but I really don't know how to do this. I
am affraid I can't do anything on Krita until someone fixes some of the
filters, so that I can see how everything works now.
Michael
More information about the kimageshop
mailing list