Vector/Shape Selection
Boudewijn Rempt
boud at valdyas.org
Mon Jun 18 08:51:35 CEST 2007
On Saturday 16 June 2007, Sven Langkamp wrote:
> There is a better way. I followed Thomas advise and made the shape
> selection a KoShapeContainer so no shape manager and no canvas is
> needed anymore.
>
> At the moment I have two issues where the shape selection doesn't fit
> into the current system: The container and selection shapes need to be
> added to the shape controller, but the paintdevice doesn't have acess
> to that.
Yes, well, the paint device is in krita/image -- and that part of krita
shouldn't depend on libs/flake. This part of the shape selection code really
needs untangling so all the shape-based parts can go into krita/ui. The image
part of krita doesn't need to know about the shapes, only about the grayscale
rasterization of the shapes, similar to the way krita/image doesn't know
anything about shape layers, but can still composit them in the image.
> The second problem is that the selection doesn't know about the image,
> but the shape selection needs it for the rasterization with kispainter
> and resolution.
The selection has a parent paint device, which has a reference to the image --
you can probably use that.
--
Boudewijn Rempt
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20070618/daaa614e/attachment.pgp
More information about the kimageshop
mailing list