ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Semi-Circle Meter background color
Posted by Jerry Allen on Nov-23-2012 03:39
Is there a way to control the background color of the corners outside the meter face? I want to place the meter on a black background and I do not know how to make the meter blend with the background.....

Jerry

  Re: Semi-Circle Meter background color
Posted by Peter Kwan on Nov-23-2012 16:44
Hi Jerry,

When you call BaseChart.setRoundedFrame to create the rounded corners, you can optionally provide an "external background color" (the background outside of the rounded frame). If the image format you use supports true color transparency (eg. PNG), you may set the exterior background to Transparent. If you are using an image format that does not support transparency (eg. JPG), you would need to set the exterior background to the same color as your web page background.

For example:

$c->setRoundedFrame(0x000000);

or

$c->setRoundedFrame(Transparent);

Hope this can help.

Regards
Peter Kwan