示例#1
0
 /// <summary>
 /// Checks an inventory slot against the expected value when the Windows 10 unregistered watermark is present
 /// </summary>
 /// <param name="itemIcon">image of the inventory slot</param>
 /// <param name="xSlot">0-3</param>
 /// <param name="ySlot">0-6</param>
 /// <returns>true if the slot matches the expected value for an empty inventory slot on the bottom row when the Windows 10 watermark is present</returns>
 private bool Windows10WatermarkEmpty(Color[,] itemIcon, int xSlot, int ySlot)
 {
     if (ySlot >= (INVENTORY_ROWS - 2))  //special handling for the bottom 2 rows Windows 10 watermark
     {
         double emptyMatch = ImageProcessing.FractionalMatch(itemIcon, RGBHSBRangeFactory.InventorySlotWindows10Watermark());
         return(emptyMatch > 0.99);
     }
     return(false);   //handling not implementing for rows 0-5
 }