ImageData 转 Image
//arcPiclocate图片绝对路径
ImageData data= new ImageData(arcPiclocate);
Image image1 = new Image(null, data);
//或者 Display display = Display.getCurrent(); Image image1 = new Image(display , data);
Image 转 ImageData
使用getImageData()方法获取
Image image1 = new Image(null, data);
ImageData imageData = image1.getImageData();