Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 Transparent background for RTBarIndicator
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

soundar

32 Posts

Posted - 16 Mar 2010 :  16:09:54  Show Profile  Reply with Quote
Is there a way to make the background of the RTBarIndicator graph transparent? For example on page 28 of QcRTGraphNetManual.PDF (Revision Date 1/27/2006 Rev. 1.6) I want the black area to be transparent and only the green (the value of the graph) to show up. Because I have an image in the background.
Thanks.

quinncurtis

1164 Posts

Posted - 17 Mar 2010 :  10:25:31  Show Profile  Reply with Quote
The background of a UserControl derived object cannot be transparent. This is a limitation of .Net UserControl objects. So if your image is underneath your ChartView window, the background of the ChartView cannot be made transparent, and the image will not show through. But, if your image is actually placed in the ChartView, using our ChartImage class, you can have the image show through. So, which is it?
Go to Top of Page

soundar

32 Posts

Posted - 18 Mar 2010 :  21:41:47  Show Profile  Reply with Quote
Maybe I was not clear in my question. I am unable to attach an image to this post - only a url to an image it seems.

http://www.screencast.com/users/LoadstarSensors/folders/Web%20site/media/0b91376d-e0c9-4f50-9111-736ba0aa4ae7
Go to Top of Page

soundar

32 Posts

Posted - 18 Mar 2010 :  22:30:20  Show Profile  Reply with Quote
I should have also mentioned that the image is part of ChartView (ChartImage control)
Go to Top of Page

quinncurtis

1164 Posts

Posted - 19 Mar 2010 :  10:30:46  Show Profile  Reply with Quote
Do not add any Background objects for the PLOT_BACKGROUND.

//Background background = new Background(pTransform1, ChartObj.PLOT_BACKGROUND, Color.Gray);
//chartVu.AddChartObject(background);

Set the barplots IndicatorBackgroundEnable property to false

RTBarIndicator barplot = new RTBarIndicator(pTransform1, EngineRPM1, barwidth, barbase, attrib1, barjust, barorient);
barplot.IndicatorBackgroundEnable = false;
.
.
.

This removes the bar indicator background, rather than just make it transparent.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07