ZedGraph中的颜色问题 [英] Color problem in ZedGraph

查看:256
本文介绍了ZedGraph中的颜色问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

我正在C#WinForm中使用zed图显示图
并且我已将bgcolor分配给zed图形控件,如下所示:

Sir,

I am showing graph using zed graph in C# WinForm
and I have assigned bgcolor to zed graph control as follows:

GraphPane myPane = zedGraphControl2.GraphPane;
            myPane.Fill.Color = this.BackColor;
            myPane.Chart.Fill.Color = this.BackColor;



它的工作,但



its working but

myPane.Chart.Fill.Color = this.BackColor;



这给我带来了问题.

图表的颜色与this.backcolor不完全相同.就像是左侧的渐变色.
右边没关系.

它的渐变色.

请给我一些解决方案.



this gives me problem.

The color of the chart is not exactly like this.backcolor. It is like gradient color from left side.
Right side is ok.

Its gradient color.

Please give me some solution.

推荐答案

请尝试以下方法:
try this instead:
myPane.Chart.Fill = new Fill(this.BackColor);
myPane.Fill = new Fill(this.BackColor);


这篇关于ZedGraph中的颜色问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆