From kde-kimageshop Thu Jun 24 14:44:57 2004 From: Boudewijn Rempt Date: Thu, 24 Jun 2004 14:44:57 +0000 To: kde-kimageshop Subject: Selections... Message-Id: <200406241644.57919.boud () valdyas ! org> X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=108808837021043 I think I got struck with a fairly bright idea yesterday. I'm working on selections, and I first wanted to implement selections as an ordinary chunk or vector or something of bytes -- but I've switched to using an indexed QImage for that. Makes showing a preview of the selection in the colorrange dialog a _lot_ easier, and holds just the same data. So then I got the next idea, and then the next. A 'brush' to paint a selection on a layer, with the attendant 'eraser' to make the selection smaller. And then, of course, a circular, rectangular or polygonal selection can be translated from a pointarray to a bytemap, and you can use the brush and the eraser to make the selection more precise. I have a feeling that when this is done it'll be a great feature -- no other paint app has something exactly like it. But, oh!, to get it done. This needs a lot of new code and no small amount of typing! But progress is being made... -- Boudewijn Rempt | http://www.valdyas.org/fading/index.cgi _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop