Example #1
0
 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);
 }
Example #3
0
 public static Image createRGBImage(int[] rgb, int width, int height, boolean processAlpha) {
   return DeviceFactory.getDevice()
       .getDeviceDisplay()
       .createRGBImage(rgb, width, height, processAlpha);
 }
Example #4
0
 public static Image createImage(java.io.InputStream stream) throws IOException {
   return DeviceFactory.getDevice().getDeviceDisplay().createImage(stream);
 }
Example #5
0
 public static Image createImage(byte[] imageData, int imageOffset, int imageLength) {
   return DeviceFactory.getDevice()
       .getDeviceDisplay()
       .createImage(imageData, imageOffset, imageLength);
 }
Example #6
0
 public static Image createImage(Image source) {
   return DeviceFactory.getDevice().getDeviceDisplay().createImage(source);
 }
Example #7
0
 public static Image createImage(String name) throws IOException {
   return DeviceFactory.getDevice().getDeviceDisplay().createImage(name);
 }