KisLayer::pixel() and KisLayer::pixel()

Boudewijn Rempt boud at valdyas.org
Sun Nov 2 23:13:56 CET 2003


KisLayer has two methods, pixel() and pixel(), one a setter for a pixel at x 
and y, and the other a getter for the pixel at x and y. 

I'm having two problems with this: first, I am having a hard time 
distinguishing between the two, and would like the setter to be called
setPixel (analogous to Qt and much of Krita, where the getter is simples x(),
and the setter setX()), but I'm also wondering whether it's a good idea to 
have a pixel-changing method directly in the paint device, instead of in the 
painter.

Was there a particular reason for this? I can imagine it would be more 
efficient, but it's also another place where we should call the colour 
strategies, or duplicate code. 

It is currently only used in the KisSelection::fromImage, which is only used 
in KisDoc::clipboardDataChanged.

-- 
Boudewijn Rempt | http://www.valdyas.org/index2.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: signature
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20031102/bd981a54/attachment.pgp


More information about the kimageshop mailing list