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
Element elem = createElement( "polygon" ); 
		StringBuffer pointsStr = new StringBuffer( );
		;
		for ( int x = 0; x < arg2; x++ )
		{
			pointsStr.append( arg0[x] )
					.append( "," ).append( arg1[x] ).append( " " ); 
		}
		elem.setAttribute( "points", pointsStr.toString( ) ); 
		return elem;
	}
	protected void initializeScriptStyles( )
	{
		codeScript = dom.createElement( "script" ); 
		appendChild( codeScript );
		styles = dom.createElement( "style" ); 
		styles.setAttribute( "type", "text/css" ); 
		appendChild( styles );
	}
	protected Element createElement( String id )
	{
		Element elem = dom.createElement( id );
		if (this.primitiveId != null)
			elem.setAttribute("id", primitiveId);
		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] + ")" ); 
		}