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