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