Page 1 of 1

Gauge background image

Posted: Fri Jul 19, 2013 10:25 am
by 17466531
Hi,

Is there any way to set an image as background of a gauge?

Thank you!
Ishan.

Re: Gauge background image

Posted: Fri Jul 19, 2013 2:38 pm
by yeray
Hi Ishan,

What version are you using, SWT, Swing, Android or BlackBerry?
This works fine for me in SWT:

Code: Select all

CircularGauge circ1 = new CircularGauge(tChart1.getChart());
circ1.getFaceBrush().getGradient().setVisible(false);
circ1.getFaceBrush().loadImage("C:\\tmp\\flower.jpg");

Re: Gauge background image

Posted: Fri Jul 19, 2013 3:42 pm
by 17466531
It works perfectly!

Thank you!
Ishan.