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

List:       kde-kimageshop
Subject:    Re: finalizing the Iterator API
From:       Cyrille Berger <cyb () lepi ! org>
Date:       2004-07-09 13:01:38
Message-ID: 200407091501.38814.cyb () lepi ! org
[Download RAW message or body]


> for it in selection
> 	Pixel color = red;
> 	if (it.y() % 10 == 0 ||
> 	    it.x() % 20 == 0)
> 		color = black;
>
> 	*it = color;
>
except that % is a very slow operation (I know it for trying to use it a lot 
in iterators).

-- 
--- Cyrille Berger ---
_______________________________________________
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