Bug 179431 [Automation]Chart background color issue[0602]
Details: [Automation]Chart background color issue[0602] Step: 1. Add a chart and set output format as jpg/bmp. 2. Add a chart and set output format as png/svg. Actual result: Step 1: Background color of chart is baby blue. Step 2: Background color of chart is black.
chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/image/JpegRendererImpl.java
}
	
	protected void updateWriterParameters( ImageWriteParam iwp )
	{
		if ( isQualitySet )
		{
			iwp.setCompressionMode( ImageWriteParam.MODE_EXPLICIT );
			iwp.setCompressionQuality( jpegQuality );
		}
	}
	/**
	 * Set the Jpeg compression quality into the renderer. The value must be 
	 * between 0 (better compression) and 1 (better quality).
	 * The default value is 0.75 (no visual loss)
	 * @param jpegQuality
	 */
	public void setCompressionQuality( final int jpegQuality )
	{
		if (jpegQuality < 0 || jpegQuality > 1 )
		{
			throw new IllegalArgumentException( "Jpeg quality must be within the [0-1] range" ); 
		}
		else
		{
			isQualitySet = true;
			this.jpegQuality = jpegQuality;
		}
	}
}