Found perfect parameters for cropping inventorySlots
This commit is contained in:
parent
732c9e9aca
commit
46248edc8e
Binary file not shown.
Binary file not shown.
|
@ -6,10 +6,14 @@ import java.io.IOException;
|
||||||
|
|
||||||
public class Inventory {
|
public class Inventory {
|
||||||
|
|
||||||
public static final int INVENTORY_OFFSET_WIDTH = 649; //top left corner of inventory, fromm top left corner of screen
|
/*x0 = 655;
|
||||||
public static final int INVENTORY_OFFSET_HEIGHT = 286;
|
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_WIDTH = 820 - 649;// 820
|
||||||
public static final int INVENTORY_HEIGHT = 530 - 286; // 530
|
public static final int INVENTORY_HEIGHT = 350; // 530
|
||||||
|
|
||||||
Robot robot;
|
Robot robot;
|
||||||
Rectangle inventoryAreaToCapture;
|
Rectangle inventoryAreaToCapture;
|
||||||
|
|
|
@ -9,7 +9,7 @@ import javax.imageio.ImageIO;
|
||||||
public class InventorySlot {
|
public class InventorySlot {
|
||||||
|
|
||||||
private static final int INVENTORY_WIDTH = 171;
|
private static final int INVENTORY_WIDTH = 171;
|
||||||
private static final int INVENTORY_HEIGHT = 244;
|
private static final int INVENTORY_HEIGHT = 254;
|
||||||
|
|
||||||
String screenshotOutputDirectory;
|
String screenshotOutputDirectory;
|
||||||
Item itemInInventorySlot;
|
Item itemInInventorySlot;
|
||||||
|
|
Loading…
Reference in New Issue