ImageData data1 = loader.load(stream)[0];
ImageData data1 = new ImageData(stream);
void getImageData1() {	int numFormats = SwtTestCase.imageFormats.length;	String fileName = SwtTestCase.imageFilenames[0];	for (int i=0; i<numFormats; i++) {		String format = SwtTestCase.imageFormats[i];		ImageLoader loader = new ImageLoader();		InputStream stream = SwtTestCase.class.getResourceAsStream(fileName + "." + format);		ImageData data1 = loader.load(stream)[0];		Image image = new Image(display, data1);		ImageData data2 = image.getImageData();		image.dispose();		assertEquals("Image width should be the same", data1.width, data2.width);		assertEquals("Image height should be the same", data1.height, data2.height);		try {			stream.close();		} catch (IOException e) {			// continue;		}	}}