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

Message ListMessage List     Post MessagePost Message

  Using a Background Image within an Angular Meter
Posted by Fatima Moola on Feb-15-2012 18:07
Hi,

I need to use a background image within the Angular Meter Ring. I am able to use an image within the angular meter square background, but this is not what I need. I want to replace the metalColor within the function
$m->addRing(0,90, metalColor($ringColor))
with an image.

Any assisstance would be appreciated.

Thanks
Fatima

  Re: Using a Background Image within an Angular Meter
Posted by Peter Kwan on Feb-16-2012 01:04
Hi Fatima,

I think you can just create an image containing a circle. The circle can be filled with any color or style you want. The space outside the circle can be set to transparent. You can save the image using the PNG image format (which supports transparency) and then use it as the background image in the meter. In this way, the background image can be made to fill the region originally occupied by the addRing code, and not affecting the region outside the circle.

Regards
Peter Kwan