Hittest performs hit testing between two images or rectangles. A hit is successful if any 'opaque' part of the image intersects. If rectangles are used, they are considered to be complete opqaue.
Parameters |
Description |
const Point<SInt32>& firstPoint |
_nt_ |
const Point<SInt32>& firstPoint |
A position of the upper-left corner of the drawable image in an arbitrary coordinate space. |
Rect<SInt32>& secondImage |
_nt_ |
Rect<SInt32>& secondImage |
A Rectangle, Point, Bitmap, or BitmapData object. |
unsigned alphaThreshold |
_nt_ |
const Point<SInt32>& secondPoint |
A point that defines a pixel location in the second BitmapData object. |
unsigned firstThreshold |
The smallest alpha channel value that is considered opaque for this hit test. |
unsigned secondThreshold |
The smallest alpha channel value that is considered opaque in the second BitmapData object. |