CollisionWithinBitmapImages

CollisionWithinBitmapImages performs a collision detection within two bitmaps at the given x, y locations. The bounded values indicate if each bitmap should use per pixel collision detection or a bounded collision detection. When both bitmaps are using bounded collision the routine checks to see if the bitmap rectangles intersect. If one is bounded and the other is pixel based the routine checks to see if a non-transparent pixel in the pixel based image intersects with the bounds of the bounded image. If both are pixel based, the routine checks to see if two non-transparent pixels collide.

Also See

 * Bitmap