Is there any way of settings the transparency of a shape to 50%. This is the code I currently have:
com.steema.teechart.styles.Shape prediction = new com.steema.teechart.styles.Shape(chart.getChart());
prediction.setColor(Color.RED);
prediction.setStyle(ShapeStyle.RECTANGLE);
The only function I can see is this:
prediction.setTransparent(true);
But I want to st it to 50%
Setting Trasparency of Shape to 50%
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Happy,
Yes, this is possible using this:
Yes, this is possible using this:
Code: Select all
com.steema.teechart.styles.Shape shape1 = new com.steema.teechart.styles.Shape(tChart.getChart());
shape1.setX0(0);
shape1.setY0(0);
shape1.setX1(100);
shape1.setY1(100);
shape1.getGradient().setVisible(true);
shape1.getGradient().setStartColor(Color.RED);
shape1.getGradient().setEndColor(Color.RED);
shape1.getGradient().setTransparency(50);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |