barriers / 阅读 / 详情

winform中怎么保存图片

2023-05-19 22:41:33
TAG: form for inform
共4条回复
牛云

实现思路:

将生成的chart显示在panel中,通过语句panel.controls.add(chart1);通过按钮触

发chart的保存操作,在通过临时文件的形式存储,在调用保存对话框,对这个临时文件进行另存操作即可:

代码:

private void button47_Click(object sender,

EventArgs e)

{

System.Windows.Forms.DataVisualization.Charting.Chart ch =

(System.Windows.Forms.DataVisualization.Charting.Chart)this.panel21.Controls[0];

ch.SaveImage(System.Windows.Forms.Application.StartupPath +

"\ChartImg\ChartTempFile.jpg",

System.Windows.Forms.DataVisualization.Charting.ChartImageFormat.Jpeg);

//临时文件

Image image =

Image.FromFile(System.Windows.Forms.Application.StartupPath +

"\ChartImg\ChartTempFile.jpg");

SaveFileDialog savedialog = new SaveFileDialog();

savedialog.Filter = "Jpg 图片|*.jpg|Bmp 图片|*.bmp|Gif 图片|*.gif|Png

图片|*.png|Wmf 图片|*.wmf";

savedialog.FilterIndex = 0;

savedialog.RestoreDirectory = true;

savedialog.FileName =

System.DateTime.Now.ToString("yyyyMMddHHmmss") + "-";

if (savedialog.ShowDialog() == DialogResult.OK)

{

image.Save(savedialog.FileName,

System.Drawing.Imaging.ImageFormat.Jpeg);

MessageBox.Show(this, "图片保存成功!", "信息提示");

}

tt白

File.Copy

将现有文件复制到新文件。不允许覆盖同名的文件。

string path = @"图片路径";

string path2 = @"要保存的路径";

File.Copy(path, path2);

=========================

File.Move(path, path2);

将指定文件移到新位置,并提供指定新文件名的选项。

cloud123

File.Copy

或者File.Move都可以

snjk

System.IO.File.Move(ofd.FileName, "C:/abc.jpg");

相关推荐

制图的英文

[地] charting;map-making;[机] [建] drafting;graphical plot;
2023-01-11 14:02:221

详情的英文怎么说?

详细的:1.minute2.particular3.detailed4.intimate5.verboseExamples:1.影评家对这部电影做了详细的分析。Thefilmhasbeenminutelydissectedbythecritics.2.请给我们公司寄一份详细的简历。Pleasesendadetailedresumetoourcompany.3.超声波心动描记器一种用来显示详细的大脑图象的仪器,利用超声波发送和反射的差异来测试并无伤无痛Aninstrumentthatinapainlessandnoninvasivemannerusesthedifferentialtransmissionandreflectionofultrasonicwavestocreateadetailedvisualimageofthebrain.4.描述对某事物极某详细的述说或报道;叙述Averydetailedaccountorreportofsomething;anarration.详细的描述particulardescription城市详细规划detailedplanning详细的叙述adetailedaccount极为详细的地图finelydetailedmaps事件的详细描述ablow-by-blowdescriptionoftheaccident.详细地说明一个概念todevelopanidea非常详细的程序表pinpointprogram进行一次详细的解释launchedintoadetailedexplanation.正详细制定破坏路线ischartingacoursetodestruction.详细解释她的方案explainedherproposalindetail.具体的:1.frondose2.idiographic3.material4.concreteExamples:1.处理这种困难你有什么具体的想法?Haveyouanyconcretethoughtsonhowtodealwiththisdifficulty?2.这个奖是一个具体的证明,说明她具有创作才能。Theprizeisatangibletestimonythatshehasgottenagermofwriteability.具体情况specific(al)circumstances具体思维concretethinking具体音乐concretemusic具体事实concretefacts具体名词aconcretenoun具体的同一性concreteidentity具体系词copularconcretecopula抽象与具体abstractandconcrete具体的事例aconcretecase具体询盘Specificinquiry
2023-01-11 14:02:336

C# charting中图例(legend)的问题。

前台页面:(legend的字体及样式可以在属性窗口设置)<asp:Chart ID="ctStatistics" runat="server" Palette="Berry" Width="950px"><Series><asp:Series Name="Series1" IsVisibleInLegend="False" Legend="Legend1" ChartType="Column"YAxisType="Secondary"></asp:Series></Series><ChartAreas><asp:ChartArea Name="ChartArea1"><AxisY ArrowStyle="Triangle" TextOrientation="Horizontal" Title="数量" TitleAlignment="Far"></AxisY><AxisX ArrowStyle="Triangle" Title="时间" TitleAlignment="Far" IntervalAutoMode="VariableCount"TextOrientation="Horizontal"></AxisX></asp:ChartArea></ChartAreas><Legends><asp:Legend Name="Legend1" TitleAlignment="Near" LegendStyle="Column" InterlacedRows="False"></asp:Legend></Legends></asp:Chart>后台代码:Series serie = new Series("SalesAmount");serie.LabelForeColor = System.Drawing.Color.Red;serie.YValueMembers = "SalesAmount";serie.XValueMember = "Time";serie.ChartType = SeriesChartType.Column;serie.ChartArea = "ChartArea1";serie.IsValueShownAsLabel = true;serie.Legend = "Legend1";serie.LegendText = "销售额(万)";serie.LegendToolTip = "销售额(万)";ctStatistics.Series.Add(serie);ctStatistics.DataSource = dt;ctStatistics.DataBind();
2023-01-11 14:03:011

com.github.mikephil.charting需要什么jar包

mpandroidchartlibrary-2-1-6.jar
2023-01-11 14:03:282

input chart 什么意思

  input chart  输入图  -------------------------------如有疑问,可继续追问,如果满意,请采纳,谢谢。
2023-01-11 14:03:482

“echart”啥意思?

单词是否正确,可能是E-chart(电子图表;电子航海图)chart英 [tʃɑ:t] 美 [tʃɑ:rt] n.图表;航海图;排行榜vt.绘制地图;记录;记述;跟踪(进展或发展)第三人称单数: charts 复数: charts 现在分词: charting 过去式: charted 过去分词: charted
2023-01-11 14:04:061

VS2010怎么安装Mschar控件啊?很急,谁能帮帮我啊,详细一点。

MSCHART安装顺序:MSChart.exeMSChart_VisualStudioAddOn.exeMSChartLP_chs.exe安装过程中一定要将VS关闭。实在没有的话,就卸载掉重新来一遍吧,呵呵
2023-01-11 14:04:112

chart one"s own course是什么意思

走自己的路(sat词汇)
2023-01-11 14:04:354

你好,DotNetCharting绑定X轴y轴的具体步骤可以说一下吗,谢谢!

这个按照你使用的.Net版本有所区别,不过简单的来说,可以分为使用一张表生成图表(DataBindTable)、使用X值和Y值的集合来生成图表(DataBindXY)、使用指定的Y值集合来生成图表(DataBindY)这几种大的方式,根据所提供参数的不同还可以分为几个小类,具体的你可以看一下DataPointCollection下面的成员,希望对你有帮助,如有疑问请追问或是Hi
2023-01-11 14:04:501

diagram,graph,chart有什么区别?

chartchartn.(名词)Amapshowingcoastlines,waterdepths,orotherinformationofusetonavigators.航海图:标出海岸线、水深或供航海者使用的其他信息的地图Anoutlinemaponwhichspecificinformation,suchasscientificdata,canbeplotted.轮廓图:上面可标绘如科学数据的特殊信息的轮廓图,Asheetpresentinginformationintheformofgraphsortables.记录纸:以字符或表格的形式记录信息的纸Seegraph1参见graph1OftenchartsAlistingofbest-sellingrecordedmusicorotheritems.Oftenusedwiththe.常作charts最畅销品目录:最畅销的唱片或其他物品的目录单。常与the连用v.tr.(及物动词)chart.ed,chart.ing,chartsTomakeachartof.绘制…的图表Toplan(something)indetail:详细计划(某事):ischartingacoursetodestruction.正详细制定破坏路线diagramdi.a.gramn.Abbr.diag.(名词)缩写diag.Aplan,sketch,drawing,oroutlinedesignedtodemonstrateorexplainhowsomethingworksortoclarifytherelationshipbetweenthepartsofawhole.图示,图解:为演示或解释某物如向工作或者为澄清整体各部分之间关系而设计的平面图、示意图、图底或外形图MathematicsAgraphicrepresentationofanalgebraicorgeometricrelationship.【数学】线图:代数或几何关系的图解Achartorgraph.图表或图解v.tr.(及物动词)di.a.grammed或di.a.grameddi.a.gram.ming或di.a.gram.ingdi.a.grams或di.a.gramsToindicateorrepresentbyorasifbyadiagram.用图解法表示:采用或近似采用表示来指明graphgraph1n.(名词)Adiagramthatexhibitsarelationship,oftenfunctional,betweentwosetsofnumbersasasetofpointshavingcoordinatesdeterminedbytherelationship.Alsocalledplot图:表示两组数的关系,通常为函数关系的图,如由这种关系确定一系列有坐标的点也作plotApictorialdevice,suchasapiechartorbargraph,usedtoillustratequantitativerelationships.Alsocalledchart用图象表示:一种图示手段,如饼状图或条形图,用于表示数量关系也作chartv.tr.(及物动词)graphed,graph.ing,graphsTorepresentbyagraph.用图表示Toplot(afunction)onagraph.将(一个函数)绘制在图上
2023-01-11 14:05:081

asp.net 用 dotnetCHARTING 画图 在web页面调用 DrawingPic(this.Chart1); 会说Chart1 没有定义

this.chart1 写在里面可能你没有定义图片,肯定是添加错了。比如别的:this.stop 如果没有定义文字和图片的时候 和其他函数并列发生时都会提示 没有定义
2023-01-11 14:05:131

chast的翻译是:什么意思

应该是“洛兹”
2023-01-11 14:05:332

“详细具体”用英语怎么说

详细的:1.minute2.particular3.detailed4.intimate5.verboseExamples:1.影评家对这部电影做了详细的分析。Thefilmhasbeenminutelydissectedbythecritics.2.请给我们公司寄一份详细的简历。Pleasesendadetailedresumetoourcompany.3.超声波心动描记器一种用来显示详细的大脑图象的仪器,利用超声波发送和反射的差异来测试并无伤无痛Aninstrumentthatinapainlessandnoninvasivemannerusesthedifferentialtransmissionandreflectionofultrasonicwavestocreateadetailedvisualimageofthebrain.4.描述对某事物极某详细的述说或报道;叙述Averydetailedaccountorreportofsomething;anarration.详细的描述particulardescription城市详细规划detailedplanning详细的叙述adetailedaccount极为详细的地图finelydetailedmaps事件的详细描述ablow-by-blowdescriptionoftheaccident.详细地说明一个概念todevelopanidea非常详细的程序表pinpointprogram进行一次详细的解释launchedintoadetailedexplanation.正详细制定破坏路线ischartingacoursetodestruction.详细解释她的方案explainedherproposalindetail.具体的:1.frondose2.idiographic3.material4.concreteExamples:1.处理这种困难你有什么具体的想法?Haveyouanyconcretethoughtsonhowtodealwiththisdifficulty?2.这个奖是一个具体的证明,说明她具有创作才能。Theprizeisatangibletestimonythatshehasgottenagermofwriteability.具体情况specific(al)circumstances具体思维concretethinking具体音乐concretemusic具体事实concretefacts具体名词aconcretenoun具体的同一性concreteidentity具体系词copularconcretecopula抽象与具体abstractandconcrete具体的事例aconcretecase具体询盘Specificinquiry
2023-01-11 14:05:441

c# 的charting chart中怎么调整饼图的数字显示在图形之外?我现在是在图形内这种,弄成外这种效果怎么设置

找到MsChart的Series对象,然后设定"PieLabelStyle"为"Outside"例如:chart1.Series[0]["PieLabelStyle"] = "Outside";
2023-01-11 14:05:501

c#chart可以最多画多条线段

2023-01-11 14:05:561

table同义词

1、desk读音:英[desk],美[desk]。释义:n.办公桌;服务台;编辑部;(美)讲道台;乐谱架。adj.书桌的;桌上用的;伏案做的。例句:He took his feet off the desk.他把双脚从书桌上移开。变形:复数desks。2、list读音:英[lɪst],美[lɪst]。释义:n.列表,清单,目录;(船的)倾斜。v.列清单;把…列入一览表;被列入价目表;把…列入正式名单(尤指医院或法庭的名单);(船只)倾斜;使(公司)上市。例句:I forget to bring my shopping list.我忘了带上购物清单。变形:过去式listed,过去分词listed,现在分词listing,第三人称单数lists,复数lists。3、schedule读音:英[ˈʃedjuːl],美[ˈskedʒuːl]。释义:n.计划(表);时间表;一览表;(电视或广播)节目表;课程表;报税单;附件(尤指表格、单据等)。v.安排,预定;将……列入计划表或清单;把(建筑物)列为文物保护单位。例句:The manager asked his secretary to check his schedule for tomorrow.经理让秘书检查自己明天的行程。变形:过去式scheduled,过去分词scheduled,现在分词scheduling,第三人称单数schedules,复数schedules。4、chart读音:英[tʃɑːt],美[tʃɑːrt]。释义:n.图表;海图;图纸;排行榜。vt.绘制……的图表;在海图上标出;详细计划;记录;记述;跟踪(进展或发展)。例句:Each colour on the chart represents a different department.图表中的每一种颜色都代表一个不同的部门。变形:过去式charted,过去分词charted,现在分词charting,第三人称单数charts,复数charts5、form读音:英[fɔːm],美[fɔːrm]。释义:n.形式,形状;形态,外形;方式;表格。vt.构成,组成;排列,组织;产生,塑造。vi.形成,构成;排列。例句:He hates violence in any form.他憎恶任何形式的暴力。变形:过去式formed,过去分词formed,现在分词forming,第三人称单数forms,复数forms。
2023-01-11 14:06:022

调用High-speed Charting Control图表VC6.0中该怎么设置

首先定义时间结构体SYSTEMTIME st; 然后给这个结构体赋值。 最后调用函数SetSystemTime(&st);来设置系统时间。
2023-01-11 14:06:411

“详细具体”用英语怎么说

In detail
2023-01-11 14:06:478

详细地用英文怎么说

问题一:“详细具体”用英语怎么说 详细的: 1. minute 2. particular 3. detailed 4. intimate 5. verbose Examples: 1. 影评家对这部电影做了详细的分析。 The film has been minutely dissected by the critics. 2. 请给我们公司寄一份详细的简历。 Please send a detailed resume to our pany. 3. 超声波心动描记器一种用来显示详细的大脑图象的仪器,利用超声波发送和反射的差异来测试并无伤无痛 An instrument that in a painless and noninvasive manner uses the differential tran *** ission and reflection of ultrasonic waves to create a detailed visual image of the brain. 4. 描述对某事物极某详细的述说或报道;叙述 A very detailed account or report of something; a narration. 详细的描述 particular description 城市详细规划 detailed planning 详细的叙述 a detailed account 极为详细的地图 finely detailed maps 事件的详细描述 a blow - by - blow description of the accident. 详细地说明一个概念 to develop an idea 非常详细的程序表 pinpoint program 进行一次详细的解释 launched into a detailed explanation. 正详细制定破坏路线 is charting a course to destruction. 详细解释她的方案 explained her proposal in detail. 具体的: 1. frondose 2. idiographic 3. material 4. concrete Examples: 1. 处理这种困难你有什么具体的想法? Have you any concrete thoughts on how to deal with this difficulty? 2. 这个奖是一个具体的证明,说明她具有创作才能。 The prize is a tangible testimony that she has gotten a germ of write ability. 具体情况 specific (al) circumstances 具体思维 concrete thinking 具体音乐 concrete music 具体事实 concrete facts 具体名词 a concrete noun 具体的同一性 concrete identity 具体系词copular concrete copula 抽象与具体 abstract and concrete 具体的事例 a concrete case 具体询盘 Specific inquiry...>> 问题二:具体地说 用英语怎么说 与generally speaking相对的 to be specific, ... 或者 specifically, ... 问题三:“具体的”用英语怎么说 concrete a.具体的,如concrete operations 具体操作. concrete thinking 具体思维. n.具体物,如mushy concrete 稀三和土.to know in the concrete 体验. specific a.特别具有的,如specific medicine特效药. specific duty 特种税, specific heat比热. particular a.特有的,稀有的,n.嗜好.如,a particular day一个特殊日子. He is very particular about cigarette香烟是他的嗜好. 问题四:详细地址用英语怎么说? Detailed address 问题五:详细地描述了...... 英语怎么说 describe sth. in detail 问题六:“详细地说" 和 “我最大的收获”英文怎么说 详细地说 to explain it in detail 我最大的收获,my biggest gain 问题七:“更具体的说”,英文怎么说 更具体的说 More specifically 问题八:请问中文具体的地址住所用英语如何表达?? 顺序从小到大,正好跟中文相反 No.15 Haoren Street Haiwu Road Nanhai District Foshan City 问题九:感谢你的解释,英文怎么说 Thank you for your explanation 问题十:用英语怎么说::"你家具体地址是什么" What"s your detailed address?
2023-01-11 14:07:271

table和graph有什么区别?

一、侧重点不一样1、table普通用词,一般指易于迅速查阅使用,具有特定编排方法的目录或表格。2、graph多指用纵横坐标之间关系的曲线表示两个量之间的图表。3、chart指把资料制成表格等形式供人看的图表。二、词义广泛性不一样1、table英 ["teɪb(ə)l]  美 ["tebl] n. 桌子;表格;平地层vt. 制表;搁置;嵌合adj. 桌子的2、graph英 [grɑːf; græf]  美 [ɡræf] n. 图表;曲线图vt. 用曲线图表示3、chart英 [tʃɑːt]  美 [tʃɑrt] n. 图表;海图;图纸;排行榜vt. 绘制…的图表;在海图上标出;详细计划;记录;记述三、变形词不一样1、table第三人称单数: tables 复数: tables 现在分词: tabling 过去式: tabled 过去分词:tabled2、graph第三人称单数: graphs 复数: tables 现在分词: graphing 过去式: graphed 过去分词:graphed3、chart第三人称单数: charts 复数: charts 现在分词: charting 过去式: charted 过去分词: charted
2023-01-11 14:07:321

C#中如何利用LightningChart绘制曲线图表

LightningChart的一个优点:在图中,通过鼠标滚轮,轻松实现放大缩小功能,便于观察曲线细节,下图为缩小放大效果:绘制曲线的代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;//添加引用集using Arction.WinForms.Charting;using Arction.WinForms.Charting.SeriesXY;namespace WindowsFormsApplication5{public partial class Form1 : Form{public Form1(){InitializeComponent();}//画线方法private void PaintLine(){DataBaseOpe ope = new DataBaseOpe();//禁用属性改变引起的重画,以便更快的渲染lightningChartUltimate1.BeginUpdate();//lightningChartUltimate1.Dock = DockStyle.Fill;//添加点线系列PointLineSeries pls = new PointLineSeries(lightningChartUltimate1.ViewXY,lightningChartUltimate1.ViewXY.XAxes[0],lightningChartUltimate1.ViewXY.YAxes[0]);//显示点pls.PointsVisible = false;SeriesPoint[] aPoints = new SeriesPoint[1000];for (int iPoint = 0; iPoint < ope.GetXmax() + 1; iPoint++){aPoints[iPoint].X = (double)iPoint;aPoints[iPoint].Y = ope.GetYvalue(iPoint);}//为点线系列分配数据pls.Points = aPoints;//将点线系列添加进列表lightningChartUltimate1.ViewXY.PointLineSeries.Add(pls);//允许Chart绘图lightningChartUltimate1.EndUpdate();}private void buttonGO_Click(object sender, EventArgs e){DataBaseOpe ope = new DataBaseOpe();PIDdeal pid = new PIDdeal();//LightningChart初始化lightningChartUltimate1.ViewXY.PointLineSeries.Clear();//数据库初始化:清空数据库ope.ClearDataBase();//PID变量初始化pid.PIDinit();pid.SetValue = double.Parse(textBoxSetValue.Text);double p = double.Parse(textBoxKp.Text);double i = double.Parse(textBoxKi.Text);double d = double.Parse(textBoxKd.Text);for(int j = 0;j < 1000;j++){ope.AddData(j, pid.PIDcontrol(pid.SetValue, p, i, d));}PaintLine();}}}实现上面图中效果,需要用到数据库操作和PID算法来实现,加上一个timer控件还可以实现实时曲线的绘制,上图包含多种图表绘制的例子,可自定义实现数据可视化操作。(简数科技    技术支持      免费中文)
2023-01-11 14:07:401

starding是什么意思

starting[英]["stɑ:tɪŋ][美]["stɑ:tɪŋ]n.出发,开始; v.起动; 出发,启程( start的现在分词 ); 提出(问题); 开办; 形近词:chartingheartingsmarting双语例句:1,These proposals represent a realistic starting point for negotiation.这些建议是谈判的现实出发点。2,When starting our company, I underestimated the non-monetary value of these private sector missions and the accompanying sense of satisfaction.开办公司时,我确实低估了这些私营部门的使命,它们能带来无法用金钱衡量的价值和满足感。3,It"s starting to infringe on our personal liberties.它开始侵犯我们的人身自由。4,The newly built airport acts as a starting point for safaris into the game parks and reserves of northern Tanzania.新建的机场是去坦桑尼亚北部野生动物园和保护区观看野生动物的出发点。5,Cut away, children! the motorcade is starting.快走开,孩子们!车队要出发了。
2023-01-11 14:07:551

C# winform 中的chart控件想要输出网格线,代码如下

ChartArea1 名称改成 Chart 导致的,把series的ChartArea改成Chart就行了。1、System.Windows.Forms.DataVisualization.Charting.Series seriesNew = new System.Windows.Forms.DataVisualization.Charting.Series();2、seriesNew.ChartArea = "Chart";3、this.XXX(Chart控件名称).Series.Add(seriesNew);
2023-01-11 14:08:001

vb.net chart控件条形图如何实现将X轴的数字1.2.3……变文字,如图所示

Dim DtRRU As DataTable = New DataTable()DtRRU.Columns.Add("Time_Int")DtRRU.Columns.Add("Bins")DtRRU.Rows(0)("Time_Int") = "0~6月"DtRRU.Rows(1)("Time_Int") = "6~12月"DtRRU.Rows(2)("Time_Int") = "1~2年"DtRRU.Rows(3)("Time_Int") = "2~3年"DtRRU.Rows(4)("Time_Int") = "3~4年"DtRRU.Rows(5)("Time_Int") = "4~6年"DtRRU.Rows(6)("Time_Int") = "6年以上"用chart.DataSource绑定DataTable, DataTable自己添加响应的名称就可以了,省略了一切代码,如果不懂可以告诉我……………………With (ChartENC.Series(0)).YValueMembers = "Bins".XValueMember = "Time_Int".XValueType = DataVisualization.Charting.ChartValueType.DateTime.ChartType = DataVisualization.Charting.SeriesChartType.ColumnEnd With______________________________________________________________________
2023-01-11 14:08:061

dotnetCHARTING无法在工具箱显示

在工具箱中点击右键,选择添加,然后把webbrowser控件添加进来,再把webbrowser控件拖到你程序中就有axwebbrowser控件了
2023-01-11 14:08:121

Chart控件作图,怎么动态添加Series与ChartAreas

using System.Web.UI.DataVisualization.Charting;private void NewChart(){Chart Chart1=new Chart1//设置位置Chart .Location = new System.Drawing.Point(83, 120);DataTable dt = CreateDataTable();//设置图表的数据源Chart1.DataSource = dt;//设置图表Y轴对应项Chart1.Series[0].YValueMembers = "Time";//设置图表X轴对应项Chart1.Series[0].XValueMember = "Date";//绑定数据Chart1.DataBind();}//创建表private DataTable CreateDataTable(){DataTable dt = new DataTable();//添加列dt.Columns.Add("Date");dt.Columns.Add("Time");DataRow dr;//添加行  dr = dt.NewRow();dr["Date"] = "2010-1-1";dr["Time"] = "10:12"dt.Rows.Add(dr);dr = dt.NewRow();dr["Date"] = "2010-1-2";dr["Time"] = "10:11"dt.Rows.Add(dr);return dt;}
2023-01-11 14:09:061

c# chart 鼠标悬停在y轴获取当前y轴所有点所有点数据?

可以过去数据啊。
2023-01-11 14:09:112

C# chart 柱形图单击一个柱子触发事件

没有这个功能!!除非你用GDI+!!
2023-01-11 14:09:192

dotnetCHARTING 这个控件画曲线如何不让曲线上显示的节点值会被取整

wser控件添加进来,再把webbrowser控件拖到你程序中就有axwebbrowser控件了
2023-01-11 14:09:271

如何在C#的WinForm中制作饼状图和柱状图

(1)设计时,在Form1上布置一个Chart控件,2个RadioButton(2)窗体代码Form1.cs如下123456789101112131415161718192021222324252627282930313233343536373839using System;using System.Collections.Generic;using System.Windows.Forms;using System.Drawing;using System.Windows.Forms.DataVisualization.Charting;namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { chart1.Series[0].Points.AddXY(1, 10); chart1.Series[0].Points.AddXY(2, 80); chart1.Series[0].Points.AddXY(3, 55); chart1.Series[0].Points.AddXY(4, 70); chart1.Series[0].Points.AddXY(5, 92); } private void radioButton1_CheckedChanged( object sender, EventArgs e) { if (radioButton1.Checked) { chart1.Series[0].ChartType = SeriesChartType.Column; } else { chart1.Series[0].ChartType = SeriesChartType.Pie; } } }}(3)运行
2023-01-11 14:09:421

为什么我的dotnetCHARTING控件无法显示在工具箱中?是WIN程序,VS2005的

你写的是WindowsForm程序嘛
2023-01-11 14:09:481

帮忙翻译英语文章!!

五分 最多迎来寥寥几个机翻。。
2023-01-11 14:09:546

用VS2010怎么样能画出图表或者说如何能用Excel表格的画图功能 VB.net

Public Class Form3    Protected Sub iniChart()        Dim dt As New DataTable        "表增加月份、收入、支出三列        dt.Columns.Add("月份")        dt.Columns.Add("收入")        dt.Columns.Add("支出")        Dim dr As DataRow        For i As Integer = 1 To 12            "新增行            dr = dt.NewRow()            "月份 1-12月            dr.Item(0) = i & "月"            Randomize()            "收入            dr.Item(1) = 3000 + Int(5000 * Rnd(8))            Randomize()            "支出            dr.Item(2) = 600 + Int(2000 * Rnd(7))            dt.Rows.Add(dr)        Next        dr = Nothing        With Me.Chart1            .DataSource = dt    "dt作为chart1的数据源            .Series.Clear()            .Legends.Clear()            .ChartAreas.Clear()            .ChartAreas.Add("收入")            .ChartAreas.Add("支出")            .Legends.Add("收入")            .Legends.Add("支出")            .Series.Add("收入")            .Series.Add("支出")            .Series("支出").ChartArea = "支出"              "指定Series所属ChartArea            .Series("支出").Legend = "支出"                 "指定Legend所属Series            .Series("收入").LegendToolTip = "收入图例"            .Series("收入").IsValueShownAsLabel = True    "标签显示数据值            .Legends("收入").DockedToChartArea = "收入"     "指定Legend所属ChartArea            .Legends("支出").DockedToChartArea = "支出"            .ChartAreas("支出").Area3DStyle.Enable3D = True  "启用3D样式        End With        With (Chart1.Series(0))            "指定x、y轴数据列            .YValueMembers = "收入"            .XValueMember = "月份"            "图表类型            .ChartType = DataVisualization.Charting.SeriesChartType.Column        End With        With Chart1.Series(1)            .YValueMembers = "支出"            .XValueMember = "月份"            .ChartType = DataVisualization.Charting.SeriesChartType.Pie        End With        Me.Chart1.DataBind()    "绑定数据源        With Me.Chart1.Series("收入")            Dim s1 As Integer            For i As Integer = 0 To .Points.Count - 1                s1 = s1 + Val(.Points(i).GetValueByName("y"))                .Points(i).ToolTip = .Points(i).AxisLabel & .Points(i).GetValueByName("y")            Next            "图例显示总收入            Me.Chart1.Legends("收入").Title = "总收入"            .LegendText = s1.ToString        End With        With Me.Chart1.Series("支出")            .IsValueShownAsLabel = True            For i As Integer = 0 To .Points.Count - 1                .Points(i).ToolTip = .Points(i).AxisLabel & .Points(i).GetValueByName("y")                .Points(i).LegendText = .Points(i).AxisLabel                .Points(i).Label = "#PERCENT"               "饼状图显示百分比                .SmartLabelStyle.AllowOutsidePlotArea = True            Next        End With        Me.Chart1.AlignDataPointsByAxisLabel("支出")        With Me.Chart1.Legends("支出")            .LegendStyle = DataVisualization.Charting.LegendStyle.Column            .Title = "支出"        End With    End Sub    Private Sub Form3_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load        Call iniChart()        Call iniCombChart()    End Sub    Private Sub iniCombChart()        Dim tps As Array        "枚举所有SeriesChartType类型        tps = System.Enum.GetValues(GetType(Windows.Forms.DataVisualization.Charting.SeriesChartType))        For Each i As Windows.Forms.DataVisualization.Charting.SeriesChartType In tps            Me.ComboBox1.Items.Add(Val(i))        Next    End Sub    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        Call iniChart()    End Sub    Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged        With Chart1.Series(0)            "改变图表样式            Dim tps As Array            tps = System.Enum.GetValues(GetType(System.Windows.Forms.DataVisualization.Charting.SeriesChartType))            For Each i As Windows.Forms.DataVisualization.Charting.SeriesChartType In tps                If Val(i) = Me.ComboBox1.Text Then                    .ChartType = i                    Exit For                End If            Next        End With    End SubEnd Class
2023-01-11 14:10:201

如何将一条横线 为图表添加 WPF 中

我已经过做类似的事情在我的一些项目。像这样创建行:<chartingToolkit:Chart Name="chart1" Title="Chart Title"> <chartingToolkit:LineSeries DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}"> <chartingToolkit:LineSeries.PolylineStyle> <Style TargetType="Polyline"> <Setter Property="StrokeDashArray" Value="5 5 5" /> <Setter Property="StrokeThickness" Value="2"/> </Style> </chartingToolkit:LineSeries.PolylineStyle> <chartingToolkit:LineSeries.DataPointStyle> <Style TargetType="{x:Type chartingToolkit:LineDataPoint}"> <Setter Property="Background" Value="Red"/> <Setter Property="Template" Value="{x:Null}" /> </Style> </chartingToolkit:LineSeries.DataPointStyle> </chartingToolkit:LineSeries></chartingToolkit:Chart>使用 MVVM 模式,和我与绑定"LineSeries"ObservableCollection<KeyValuePair<string, int>>
2023-01-11 14:10:251

vs自带的chart控件如何动态生成

动态生成控件,定义大小方向
2023-01-11 14:10:313

vs中没有chartdata?

你建工程后,选择目标平台为.net 4.0 ,然后再引用中添加System.Windows.Forms.DataVisualization引用1.然后在后台.xmal.cs文件中 using System.Windows.Forms.DataVisualization.Charting;2.最后在前台界面.xmal文件中引用 xmlns:FormChar="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"xmlns:Char="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"3.最后下面才是使用MSChart控件:<Grid><WindowsFormsHost x:Name="myFormsChart" FontSize="8"><Char:Chart x:Name="myChart" BackColor="Black" GetToolTipText="myChart_GetToolTipText" MouseWheel="myChart_MouseWheel"></Char:Chart></WindowsFormsHost></Grid>
2023-01-11 14:10:421

C#编的程序运行中出现了“System.InvalidOperationException: 集合已修改;可能无法执行枚举操作。”

留联系看。
2023-01-11 14:10:484

未能找到程序集"dotnetCHARTING".

你这个是第三方的组件吗?如果是第三方组件,你需要把他添加到你的打包文件中。作为资源文件存在就可以了
2023-01-11 14:11:011

关于C# chart控件的使用,我是新手,写上代码,执行后没有曲线图,一片空白,怎么回事?

人品问题
2023-01-11 14:11:074

我现在要实现:用C#动态实时的画出曲线图,横坐标是时间,纵坐标可以是随机数,曲线是不断动态生成的。

请问你是怎么接收数据的,我这个还不怎么明白,不知道怎么把串口上传的数据赋给这个图表
2023-01-11 14:11:333

如何在C#的WinForm中制作饼状图和柱状图

用Chart控件(1)设计时,在Form1上布置一个Chart控件,2个RadioButton(2)窗体代码Form1.cs如下using System;using System.Collections.Generic;using System.Windows.Forms;using System.Drawing;using System.Windows.Forms.DataVisualization.Charting;namespace WindowsFormsApplication1{    public partial class Form1 : Form    {        public Form1()        {            InitializeComponent();        }        private void Form1_Load(object sender, EventArgs e)        {            chart1.Series[0].Points.AddXY(1, 10);            chart1.Series[0].Points.AddXY(2, 80);            chart1.Series[0].Points.AddXY(3, 55);            chart1.Series[0].Points.AddXY(4, 70);            chart1.Series[0].Points.AddXY(5, 92);        }        private void radioButton1_CheckedChanged(                object sender,                 EventArgs e)        {            if (radioButton1.Checked)            {                chart1.Series[0].ChartType = SeriesChartType.Column;            }            else            {                chart1.Series[0].ChartType = SeriesChartType.Pie;            }        }    }}(3)运行
2023-01-11 14:11:451

如何在C#的WinForm中制作柱状图

(1)设计时,在Form1上布置一个Chart控件,2个RadioButton(2)窗体代码Form1.cs如下using System;using System.Collections.Generic;using System.Windows.Forms;using System.Drawing;using System.Windows.Forms.DataVisualization.Charting;namespace WindowsFormsApplication1{public partial class Form1 : Form{public Form1(){InitializeComponent();}private void Form1_Load(object sender, EventArgs e){chart1.Series[0].Points.AddXY(1, 10);chart1.Series[0].Points.AddXY(2, 80);chart1.Series[0].Points.AddXY(3, 55);chart1.Series[0].Points.AddXY(4, 70);chart1.Series[0].Points.AddXY(5, 92);}private void radioButton1_CheckedChanged(object sender, EventArgs e){if (radioButton1.Checked){chart1.Series[0].ChartType = SeriesChartType.Column;}else{chart1.Series[0].ChartType = SeriesChartType.Pie;}}}}
2023-01-11 14:11:591

VB用mschart画折线图

首先:importssystem.windows.forms.datavisualization.charting然后定义图表类型为折线图:chart1.series("series1").charttype=seriescharttype.line;最后使用1-99之间的随机数生成图表:dimrandomasnewrandom()dimindexasintegerforindex=0to9chart1.series("series1").points.addy(random.next(1,99))nextindex希望对你有帮助,还有疑问请追问或是hi
2023-01-11 14:12:061

怎样给C#的chart控件提供自定义的DataSet或者DataTable?

//DataTable 结构三列//BG|TotalRequest|FinishedChart2.Series.Add("需求总数");Chart2.Series.Add("结案总数");Chart2.Series[0].Label = "#VAL";Chart2.Series[1].Label = "#VAL";Chart2.Titles[0].Text = title;Chart2.Titles[0].Alignment = ContentAlignment.TopCenter;Chart2.Titles[0].Font = new Font("宋体", 10, FontStyle.Bold);Chart2.DataSource = dt;Chart2.ChartAreas[0].AxisY.Interval = 10;Chart2.ChartAreas[0].AxisX.Interval = 1;Chart2.ChartAreas[0].AxisX.LabelStyle.Angle = -45;Chart2.Series[0].XValueMember = "BG";//DataTable列名Chart2.Series[0].YValueMembers = "TotalRequest";//DataTable列名Chart2.Series[1].YValueMembers = "Finished";//DataTable列名Chart2.DataBind();Chart2.Series[1].Color = Color.IndianRed;System.Web.UI.DataVisualization.Charting.ChartArea productChartArea = Chart2.ChartAreas[0];productChartArea.Area3DStyle.Enable3D = true;productChartArea.Area3DStyle.PointGapDepth = 0;productChartArea.Area3DStyle.PointDepth = 50;productChartArea.Area3DStyle.IsClustered = true;productChartArea.Area3DStyle.WallWidth = 10;
2023-01-11 14:12:271

商务英语工作任务流程

有关商务英语工作任务流程   On target/on scheduleMeans that a project, task, or assignment is proceeding according to   pre-determined timelines.   Completion status   The amount of measurable work that has been done for a specific   project or task. Usually expressed as a percentage.   Milestones   Key chronological points that denote/chart important events along the   evolution of a project.   Delivery date   Date when an assignment is expected to be completed.   Drop-dead date   Date beyond which there is absolutely no room for further delay in   deliverables.   Critical points   Points along the evolution of a project that must be completed and   delivered before any other project action can proceed.   Inductive reasoning   Inductive reasoning moves from specific details to broader generalizations. Informally, we sometimes call this a "bottom up"approach. Inductive reasoning begins with specific observations and measures of detailed tasks and assignments, which are then categorized and classified into functional activities (e.g. Sales,   Marketing) to form general plans and strategies.   Deductive reasoning   Deductive reasoning works from the more general to the more specific. Sometimes this is informally called a "top-down" approach.   Flowcharting   Flowcharting is one method of pictorially representing a procedural   (step-by-step) solution to a business problem before you actually start   to write the action plan.   MBO   Management By Objectives. A methodology that creates quantifiable and measurable expected results at all functional levels in a project. ;
2023-01-11 14:12:501

一对情侣边喝着咖啡边聊着天。帮忙翻译成英语,,不要用机器翻译啊~~!!

one couple were chatting while they were having coffee.
2023-01-11 14:12:584

谁能帮我分析及翻译一下这个句子,主要语法及句子的结构,求大神帮帮忙

第一句:甚至在这个充满虚伪的世界当中,黑人女性仍然无法摆脱被他人抛以白眼的世俗法则,认为她们都是由那些从不结婚的、酗酒的母亲养大的、易于纵欲的女人。第二句:作为第一夫人的她在有机会致力于一项事业、慈善或基金会之前,最为紧急和最为复杂的事务对于她本人来说也许是件简单的事。(我只能翻译到这种地步了,望采纳,谢谢)
2023-01-11 14:12:373

常服的服字组词

服字组词 :服从、服装、衣服、克服、西服、服气、舒服、诚服、制服、信服、叹服、折服、服役、说服、驯服、服侍、除服、口服、礼服、内服、军服、服饰、宾服、屈服、臣服、校服、拜服、成服、服罪、服丧、服式、服刑、心服、佩服、满服、压服、便服、推服、敬服、服老
2023-01-11 14:12:382

服的组词

“组词”通常是指把单个汉字与其他合适的汉字搭配而组成双音节或多音节词语。以下是我收集整理的服的组词,仅供参考,大家一起来看看吧。 服的组词 1 服字的组词: 丽服、异服、称服、震服、射服、时服、帅服、容服、凶服、祖服、御服、服卉、缓服、胡服、服媚、琐服、在服、玩服、伟服、常服、謼服、填服、男服、衿服、赏服、除服、冬服、齐服、鬼服、淫服、招服、雅服、服从、布服、服丧、衷服、衡服、不服、服阕、吞服、服惨、形服、服理、服降、殡服、服玩、败服、爵服、伪服、低服、姣服、帝服、入服、衽服、帖服、俯服、尊服、外服、叛服、被服、克服、服竟、后服、和服、微服、丧服、毁服、服朞、服食、赭服、贡服、箭服、慹服、惭服、夷服、大服、非服、蕃服、死服、敛服、艰服、服杜、微服、调服、宿服、冕服、綀服、蚤服、冠服、率服、服匿、支罗服、随身衣服、竺乾服、莲花服、服务员、鹤补朝服、慈母服、夜礼服、服务业、超期服役、鲜衣凶服、燕尾服、抽纱服装、服务费、列宁服、盛服先生、避朝变服、贾马服郑、军便服、返初服、制服帽、工作服、离尘服、五铢服、服务贸易、大礼服、白龙微服、被服厂、制服呢、大衣服 服字的造句: 1、他们不服判决,决定申诉。 2、这件衣服你穿了挺称身的。 3、我们为顾客提供个人服务。 4、但她从没想到屈服于压力。 5、爸爸,住在饭店里真舒服。 6、她摸摸她绸质的灰色衣服。 7、银行服务可靠并价格公道。 8、你对我的服侍已经到了底。 9、材料不足,尚难令人信服。 10、孩子们长得衣服穿不上了。 服字的常用词组: 服服帖帖 fú fu tiē tiē [docile;obedient] 温顺地或谦恭地服从跟随 服软,服软儿 服丧 fú sāng [be in mourning] 在一定时期内带孝,对死去的长辈或平辈亲属表示哀悼 服饰 fú shì [dress and personal adornment] 衣着和装饰 服侍 fú shì [wait upon]∶伺侯;照料 服侍父母 服输 fú shū [admit defeat] 认输,承认失败 服务 fú wù [give service to;serve] 履行职务,为大家做事 服务周到 服务行业 fú wù háng yè [service trades] 为人服务,使人生活上得到方便的各种行业 服务员 fú wù yuán [attendant;steward waiter] 服侍或照料他人的人 服刑 fú xíng [serve a sentence;serve one"s term of imprisonment] 经受刑役 因伪造罪而服五年徒刑 服药 fú yào [take medicine] 吃药 服的组词 2 组词 克服、西服、诚服、制服、折服、服役、驯服、屈服、服式、微服 和服、服老、服满、礼服、臣服、口服、拜服、服丧、服刑、服饰 满服、推服、成服、服帖、征服、服软、服药、压服、收服、校服 被服、丧服、佩服、心服、信服、孝服、五服、服辩、服输、盛服 1.衣服:衣服,汉语名词,读作(yī fu),是指人类或通过人类来完成遮掩身体、载体的用布料(如棉布、丝绸、天鹅绒、化学纤维等)等材质做成的各种样式的遮挡物。 2.服务:服务是指为他人做事,并使他人从中受益的一种有偿或无偿的活动。不以实物形式而以提供劳动的形式满足他人某种特殊需要。 3.顺服:按别人意愿办事。 4.服药:服食药物。语本《礼记·曲礼下》:“医不三世,不服其药。”《史记·扁鹊仓公列传》:“病有六不治……形羸不能服药,五不治也。” 明王守仁《传习录》卷中:“若必待疟发而后服药调理,则既晚矣。”王西彦《一个小人物的愤怒》:“提起服药,站在旁边的"女人就对 马希贤 先生扮着懊丧无助的脸色。” 5.水土不服:水土不服是一个成语,读音是shuǐ tǔ bù fú,意思是形容身体与环境产生的不良反应。 服的造句 1, 对客户信守承诺,这一服务准则非常重要。 2, 稍微一服软,事情要好办得多。 3, 有些东西,不服气是不行的。 4, 一人酒已经喝多了还在喊:再拿瓶酒来。一服务员递上一瓶酒,他手一挥:谁……谁让你俩一人上一瓶的?撤掉一瓶!大家喝好就行不能喝多了! 5, 我们所讨论的是学术思想问题,在这些问题上,我唯一服从的是真理,否则的话,无论多么大的权威,我也不会降心相从的。
2023-01-11 14:12:311

十大公认最好看的抗日小说

十大公认最好看的抗日小说为:第一本:《狼群》作者:刺血书评:一个普通大学生被一群雇佣兵掳走之后,成为一名强大雇佣兵战士,里面有热血激情,也有战友情深,有杀戮也有守护,有炮火纷飞也有儿女情长,现代军事类小说中少有的巅峰巨作。第二本:《佣兵的战争》作者:如水意书评:主角是一个很普通的军迷,一次意外,跑去了非洲,结果不幸遇到了空难,侥幸活命,却成了雇佣兵,从此硝烟弥漫的战场多了一个身影。战争场面,人物刻画,现实国际风云的融合,军迷必读。第三本:《烽烟尽处》作者:酒徒书评:这本书里既有长枪大炮,也有敌国倭寇,看的时候让人热血沸腾,仿佛战场就在眼前,非常具有影视剧的既视感,触手可及感。第四本:《诡刺》作者:纷舞妖姬书评:主要写的是一个代号“诡刺”的男人的故事,主角不是从一开始就是一个厉害的角色,而是一步一步慢慢崛起。这一条成长之路,不浮夸很热血,这本小说里的军人们有血有肉,有爱有狠,逼真的描写,详细的描述,一定会让从来没有真正了解过军事的朋友们眼前一亮。第五本:《雷霆反击》作者:野狼獾书评:本书对现代战争场景描写相当优秀,尤其是空军空战,并且在有专业性真实性的同时,也兼顾了可读性和科普性,让军迷们看得过瘾。第六本:《驻马太行侧》作者:寂寞剑客书评:主角黄埔系学生,淞沪会战,南京大作战,徐州会战,远征军,各种战争精彩无比,打出中国军人的血性,中国军人雄起。第七本:《烽火逃兵》作者:小知闲闲书评:优秀的抗战架空小说,另类的写实视角,整个故事起承转合流畅,有深度有细节,写出了时代韵味。是近年来难得一见的抗日文精品。第八本:《抗战之中国远征军》作者:远征士兵书评:主角从中国远征军第一次进入缅甸开始通过自己力所能及的事从小处开始影响上层,慢慢的一点点的改变历史,但又让人觉得很合理。很经典的抗战文。第九本:《狼牙》作者:刘猛书评:“狼牙少帅”刘猛最受赞誉作品,无数军迷心中难以超越的经典。《狼牙》是以中国第一支陆军特种部队的创建及成长作为背景,揭开了特种部队的神秘面纱。小说以大跨度、大场面、全景式的描述将中国第一支陆军特种部队从出生到享誉世界的铁血成长历程完整地呈现在了读者面前。第十本:《第五部队》作者:纷舞妖姬书评:这是一部描写中国第五特殊部队创始人传奇一生的小说,这本小说再现了半个多世纪以前的那一场场惊心动魄的血雨腥风,在硝烟弥漫、刺刀见红的对日战场,再凉的血都会沸腾起来。
2023-01-11 14:12:281