Click or drag to resize

SpriteSpriteAtImagePoint Method

Check to see if the sprite exists at the point specified. The point given is in coordinates used by the image (not the PictureBox, use SpriteAtPictureBox for that)

Namespace:  SpriteLibrary
Assembly:  SpriteLibrary (in SpriteLibrary.dll) Version: 1.0.0.6 (1.0.0.6)
Syntax
C#
public bool SpriteAtImagePoint(
	Point location,
	SpriteCollisionMethod method = SpriteCollisionMethod.rectangle
)

Parameters

location
Type: System.DrawingPoint
An imagebox location
method (Optional)
Type: SpriteLibrarySpriteCollisionMethod
the method to use to determine if the image is there

Return Value

Type: Boolean
true if the sprite is at that position, false if it is not
See Also