[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Force a layer to extend to the full image
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2005-07-16 6:52:23
Message-ID: 200507160852.25835.boud () valdyas ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

[Attachment #5 (application/pgp-signature)]

_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic