how should selections work

Casper Boemann cbr at boemann.dk
Sun Apr 17 21:57:55 CEST 2005


On Sunday 17 April 2005 21:21, Boudewijn Rempt wrote:
> I like the current way of visualizing -- but I'd be the first to admit that
> I only started using this way of visualizing selections because I wasn't
> able to figure out how to do marching ants from a byte mask, let alone a
> _fast_ marching ants.
I wasn't really think of "marching ants" but simply that white when selected 
shouldn't be white as well.

> What I'd want, ideally, is a mask but with a thin, contrasting line (either
> white or black depending on the average value of the image) around the
> selected area.
That wouldn't fix the white on white problem though

> Only the current layer's selection should be shown. This is a bug in our
> TODO. And, ideally, the selection should be rendered on top of the complete
> composited image. I rather though that was already true -- because of the
> code in renderToProjection, but maybe I'm wrong.
All selections are currently shown and not on top.

I'll change this

> > The selected area should be normally visible, and non selected parts
> > "grayed". Right ?
>
> Yes. The invert button in the selection tools is meant to make it possible
> to show it the other way around -- which is useful when selecting by color.
> Doesn't work correctly yet, though.
Ok but this is visualisation and global in nature, so should be part of 
rendering pipe and not part of a KisSelection

> The rendering pipe as I envision would be:
>
> composite all layers on projection layer
> convert layer to qimage
> paint selection mask of current layer onto qimage (using Arthur)
> paint other stuff onto qimage
> blit qimage onto canvas
> paint current tool lines, meshes, handles etc.

That rendering pipe would even make it possible to move selection color to 
KisSelection without specialised code :-)


> I'd actually really like to be able to have not just a default pixel
> settable, but a default pattern or even a default pixel callback -- for
> instance for creating canvas structure on the fly. See the texture methods
> in the wet color strategy.
this is for after the release, but sure.

-- 
best regards / venlig hilsen
Casper Boemann


More information about the kimageshop mailing list