Image image = new Image(Display.getDefault(), getClass().getResourceAsStream(transparentImageFilenames[0]));
InputStream stream = getClass().getResourceAsStream(transparentImageFilenames[0]); Image image = new Image(Display.getDefault(), stream); try { stream.close(); } catch (IOException e) {}
public void test_getTransparencyMask() {//	Bug 71472 - transparency mask should be null	//	assertNull(":a:", imageData.getTransparencyMask());	Image image = new Image(Display.getDefault(), getClass().getResourceAsStream(transparentImageFilenames[0]));	imageData = image.getImageData();	ImageData maskData = imageData.getTransparencyMask();	assertNotNull(":b:", maskData);//	Bug 71472 - transparency mask should be null	/*	image = new Image(Display.getDefault(), getClass().getResourceAsStream(imageFilenames[0] + '.' + imageFormats[imageFormats.length-1]));	imageData = image.getImageData();	maskData = imageData.getTransparencyMask();	assertNull(":c:", maskData);*/	}