Am 08.12.2008, 23:56 Uhr, schrieb Paul McNett <[EMAIL PROTECTED]>:

> In FloatCanvas 1, color depth needs to be 24 for the HitTest to work. Is  
> this still
> an issue in FC2?
>
> I have some users that can't run my app because they have display  
> adapters (virtual
> display adapters over things like Citrix) that only go up to a depth of  
> 16.

Right now floatcanvas2 does not do pixel perfect hit testing (ppht),  
instead it tests whether a point is inside the created graphics path. So  
it is independent of color depth. If your application does not need ppht  
you might be interested in that.
I am thinking to add ppht at some point, but it will work a bit different  
 from the current hit testing as there's also an alpha channel to be aware  
of. For this mode the color depth should not matter.
It's actually quite simple to implement. Each of the objects whose  
bounding boxes intersect with the position to be tested will be drawn into  
a 1x1 sized offscreen bitmap. Then the bitmap pixel is tested for changes  
after each draw. If it changed, that node was hit. This might be a tad  
slower than the approach in fc1, but it works with alpha channels  
(potentially allowing you to set some alpha threshold).

-Matthias
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to