Found perfect parameters for cropping inventorySlots

This commit is contained in:
davpapp 2018-01-31 23:38:32 -05:00
parent 732c9e9aca
commit 46248edc8e
4 changed files with 8 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -6,10 +6,14 @@ import java.io.IOException;
public class Inventory {
public static final int INVENTORY_OFFSET_WIDTH = 649; //top left corner of inventory, fromm top left corner of screen
public static final int INVENTORY_OFFSET_HEIGHT = 286;
/*x0 = 655;
x1 = 697;
x2 = 738;
x3 = 781;*/
public static final int INVENTORY_OFFSET_WIDTH = 655; //top left corner of inventory, fromm top left corner of screen
public static final int INVENTORY_OFFSET_HEIGHT = 290;
public static final int INVENTORY_WIDTH = 820 - 649;// 820
public static final int INVENTORY_HEIGHT = 530 - 286; // 530
public static final int INVENTORY_HEIGHT = 350; // 530
Robot robot;
Rectangle inventoryAreaToCapture;

View File

@ -9,7 +9,7 @@ import javax.imageio.ImageIO;
public class InventorySlot {
private static final int INVENTORY_WIDTH = 171;
private static final int INVENTORY_HEIGHT = 244;
private static final int INVENTORY_HEIGHT = 254;
String screenshotOutputDirectory;
Item itemInInventorySlot;