Silvan wrote: > On Friday 25 July 2003 10:27 am, Guillaume Laurent wrote: >>> If the pixel value is non-black/blue (grey/white background), >>> then the user has hit the background, >> >> Or very near the note, and we need some kind of threshold. > > The pixmaps are antialiased, aren't they? Plus if you turn it on, > there's Chris's funky background paper thingie. Texture would make > pixel computation that much more annoying.
The suggestion is sound enough, it's just that the details wouldn't necessarily want to be the way you're assuming. It's not easy, nor particularly desirable, to test the pixel colour at the click point. But what we could certainly do, when notified that a click has a collision with a canvas pixmap, is test whether the location of the click within that pixmap falls on a masked or unmasked pixel according to the bitmask associated with the pixmap. That would be a bit of work and a little on the slow side, but not too much of either to make it at all impractical. The problem is whether it's actually desirable. The main problem is that you often want it to be made easier to click on a single object, not harder -- especially if that object is something less solid than a note, such as a slur or a small piece of text. Chris ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Rosegarden-devel mailing list [EMAIL PROTECTED] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
