public static Image createImage(int width, int height) { if (width <= 0 || height <= 0) { throw new IllegalArgumentException(); } return DeviceFactory.getDevice() .getDeviceDisplay() .createImage(width, height, false, 0x00FFFFFF); }
@BeforeClass public static void changeDeviceTypeToNonTouch() { Device device = spy(DeviceFactory.getDevice()); when(device.hasPointerEvents()).thenReturn(false); DeviceFactory.setDevice(device); }
public static Image createRGBImage(int[] rgb, int width, int height, boolean processAlpha) { return DeviceFactory.getDevice() .getDeviceDisplay() .createRGBImage(rgb, width, height, processAlpha); }
public static Image createImage(java.io.InputStream stream) throws IOException { return DeviceFactory.getDevice().getDeviceDisplay().createImage(stream); }
public static Image createImage(byte[] imageData, int imageOffset, int imageLength) { return DeviceFactory.getDevice() .getDeviceDisplay() .createImage(imageData, imageOffset, imageLength); }
public static Image createImage(Image source) { return DeviceFactory.getDevice().getDeviceDisplay().createImage(source); }
public static Image createImage(String name) throws IOException { return DeviceFactory.getDevice().getDeviceDisplay().createImage(name); }