Algorithmix.Utility.IsBound C# (CSharp) Méthode

IsBound() public static méthode

Determines whether the given x and y coordinates are bound with in the given the given image
public static IsBound ( Bitmap image, int xx, int yy ) : bool
image System.Drawing.Bitmap Bit map image to checked
xx int X position of the pixel or Column
yy int Y position of the pixel or Row
Résultat bool
        public static bool IsBound(Bitmap image, int xx, int yy)
        {
            if (xx >= 0 && xx < image.Width && yy >= 0 && yy < image.Height)
            {
                return true;
            }
            else
            {
                return false;
            }
        }