koffice/krita/image

Dmitry Kazakov dimula73 at gmail.com
Tue Jun 29 13:21:25 CEST 2010


>
> Wouldn't it have been nicer api to have something like:
> KisPaintDeviceSP tempDevice = originalDevice->createClone(interestedRect);
>

The point of this method is that we do not have to create a new device, so
we do not need to allocate 12KiB of memory every time, but we can use an
existing one.

I wanted to create a separate class for temporaries, like
KisTemporaryPaintDevice, but Lukas didn't like this idea.

-- 
Dmitry Kazakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20100629/19ca12c4/attachment.htm 


More information about the kimageshop mailing list