本文整理汇总了C#中OxyPlot.PlotModel.ToPng方法的典型用法代码示例。如果您正苦于以下问题:C# PlotModel.ToPng方法的具体用法?C# PlotModel.ToPng怎么用?C# PlotModel.ToPng使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OxyPlot.PlotModel
的用法示例。
在下文中一共展示了PlotModel.ToPng方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestMethod1
public void TestMethod1()
{
var diff = new MultitapDiffuser(3000);
diff.SetTapCount(50);
diff.SetTapDecay(0.9);
diff.SetTapGain(1.0);
diff.SetTapLength((int)(2000));
var inp = new double[3000];
inp[0] = 1.0;
diff.Process(inp, inp.Length);
var outp = diff.Output;
var pm = new PlotModel();
var series = new StemSeries();
series.MarkerSize = 1.0;
series.Color = OxyColors.Black;
series.Points.AddRange(outp.ToDataPoints());
pm.Series.Add(series);
pm.ToPng(@"e:\multitap.png", 800, 600);
}
示例2: TestMethod2
public void TestMethod2()
{
var diff = new AllpassDiffuser(3000, 48000);
diff.Seeds = new ShaRandom().Generate(652, 10000).ToArray();
diff.SetDelay(100);
diff.Stages = 3;
diff.SetFeedback(0.7);
diff.SetModAmount(0.0);
var inp = new double[3000];
inp[0] = 1.0;
diff.Process(inp, inp.Length);
var outp = diff.Output;
var pm = new PlotModel();
var series = new StemSeries();
series.MarkerSize = 1.0;
series.Color = OxyColors.Black;
series.Points.AddRange(outp.ToDataPoints());
pm.Series.Add(series);
pm.ToPng(@"e:\allpass3.png", 800, 600);
}