Gauge background image

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Myti
Newbie
Newbie
Posts: 10
Joined: Mon Jul 08, 2013 12:00 am

Gauge background image

Post by Myti » Fri Jul 19, 2013 10:25 am

Hi,

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

Thank you!
Ishan.

Yeray
Site Admin
Site Admin
Posts: 8733
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Gauge background image

Post by Yeray » Fri Jul 19, 2013 2:38 pm

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");
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Myti
Newbie
Newbie
Posts: 10
Joined: Mon Jul 08, 2013 12:00 am

Re: Gauge background image

Post by Myti » Fri Jul 19, 2013 3:42 pm

It works perfectly!

Thank you!
Ishan.

Post Reply