本文整理匯總了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);
}