Bug 380730 GraphicsExample Image Transformation tab needs to be more interesting
The image transformation tab in the graphicsExample should allow negative numbers and numbers greater than 360 for degrees of rotation, and it should have x, y translation capability.
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ImageTransformTab.java
*/
public void paint(GC gc, int width, int height) {
	if (!example.checkAdvancedGraphics()) return;
	Device device = gc.getDevice();
	Image image = GraphicsExample.loadImage(device, GraphicsExample.class, "ace_club.jpg"); 
	Transform transform = new Transform(device);
	
	
	transform.scale(scaleSpinnerX.getSelection()/100f, scaleSpinnerY.getSelection()/100f);
	
	
	Rectangle rect = image.getBounds();
	transform.translate(rect.width/2, rect.height/2);
	transform.rotate(rotateSpinner.getSelection());
	transform.translate(-rect.width/2, -rect.height/2);
	
	if(invertButton.getSelection()){
		transform.invert();
	}
	
	gc.setTransform(transform);
	
	gc.drawImage(image, 0, 0);
	gc.drawRoundRectangle(0, 0, image.getBounds().width, 
								image.getBounds().height, 22, 22);
	transform.dispose();
	image.dispose();
}
}