At 7:31 PM +0200 on 6/3/99, M. Uli Kusterer wrote:
>>Will a click event on an unusually shaped object be generated for the
>>rectangular bounding box of the shape or specifically within the bounds of
>>the shape?
>>
>>I see the latter to be hard to implement.
>
>Dylan,
>
> it's not that hard. Initial hit-testing is done with object's rects for
>speed reasons, but when we have a button whose Rect has been hit, we can
>use API calls to determine whether the point was in the shape. If there is
>no support for this kind of hit-testing, we could as a last resort draw the
>object's custom shape into a bitmap and fill it black, then we'd just have
>to check whether that pixel is black or white. If it's white we get rid of
>the pixMap and resume checking rects.
Didn't my message about polygon hit testing get through?