Bug 128582 Set jpg image to chart background, preview in html, background image is displayed incorrectly.
Set jpg image to chart background, preview in html, background image is displayed incorrectly. Steps: 1.Create a bar chart 2.Set image to chart background 3.Preview in html Actual Results: 1.See the attachment Expected Results: 1.The background image can be previewed correctly.
chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGGraphics2D.java
elem.setAttribute( "font-family", getFont().getFamily()); 
		elem.setAttribute( "font-size", Integer.toString(getFont().getSize())); 
		String style = getRenderingStyle(RenderingHints.KEY_TEXT_ANTIALIASING);
		if ( color != null ){
			String alpha = alphaToString( color );
			if ( alpha != null )
				style += "fill-opacity:" + alpha + ";"; 
			style += "fill:" + serializeToString( color ) + ";"; 
		}
		elem.setAttribute("style", style);
		if ( transforms.getType( ) != AffineTransform.TYPE_IDENTITY )
		{
			double[] matrix = new double[6];
			transforms.getMatrix( matrix );
			elem.setAttribute( "transform", "matrix(" + matrix[0] + "," + matrix[1] + "," + matrix[2] + "," + matrix[3] + "," + matrix[4] + "," + matrix[5] + ")" ); 
		}
		
		return elem;
	}
	
	protected String getRenderingStyle(Object key){
		Object value = renderingHints.get(key);
		if (key.equals(RenderingHints.KEY_TEXT_ANTIALIASING)){
			if (value.equals(RenderingHints.VALUE_TEXT_ANTIALIAS_OFF))
				return "text-rendering:optimizeSpeed;"; 
			else
				
				return "";   
		}
		return "";