TapTitanXNA_JonryBorbe.Button.hitImageAlpha C# (CSharp) Méthode

hitImageAlpha() public méthode

public hitImageAlpha ( Rectangle rect, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool
rect Microsoft.Xna.Framework.Rectangle
texture Microsoft.Xna.Framework.Graphics.Texture2D
x int
y int
Résultat bool
        public bool hitImageAlpha(Rectangle rect, Texture2D texture, int x, int y)
        {
            return hitImageAlpha(0,0, texture, texture.Width * (x - rect.X) / rect.Width, texture.Height * (y - rect.Y) / rect.Height);
        }

Same methods

Button::hitImageAlpha ( float tx, float ty, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool