Force a layer to extend to the full image

Boudewijn Rempt boud at valdyas.org
Sat Jul 16 08:52:23 CEST 2005


On Saturday 16 July 2005 00:39, Cyrille Berger wrote:
> Hello,
> How can I add "force" a layer to extend to the full image ?
> I am working with filter, which do not extend the image.

Just iterate a write iterator over the size of the image to fill the layer 
with pixels.

KisRectIterator it = dev->createRectIterator(0, 0, img->widht(), 
img->height(), true);

Reading always works, so if you just need to read pixels from the size of a 
full image, just create the iterator to read.

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20050716/36fe55ae/attachment.pgp


More information about the kimageshop mailing list