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_getTransparencyType() {	assertEquals(":a:", SWT.TRANSPARENCY_NONE, imageData.getTransparencyType());	Image image = new Image(Display.getDefault(), getClass().getResourceAsStream(transparentImageFilenames[0]));	imageData = image.getImageData();	assertFalse(":b:", SWT.TRANSPARENCY_NONE == imageData.getTransparencyType());		image = new Image(Display.getDefault(), getClass().getResourceAsStream(imageFilenames[0] + '.' + imageFormats[imageFormats.length-1]));	imageData = image.getImageData();	assertEquals(":c:", SWT.TRANSPARENCY_NONE, imageData.getTransparencyType());}