ArcBasicDocs

ImageRectCollide

Pixel-perfect image/rectangle test.

ImageRectCollide ( image,x,y,frame,rect_x,rect_y,rect_width,rect_height )

Parameters

image
the image's handle.
x
where it's drawn, across.
y
where it's drawn, down.
frame
which frame of it.
rect_x
the rectangle's left edge.
rect_y
its top edge.
rect_width
its width.
rect_height
its height.

Description

Tells you whether any pixel of an image that isn't see-through, drawn at a position, lands inside a rectangle.

See also