本文整理汇总了C#中KeyValuePair.Split方法的典型用法代码示例。如果您正苦于以下问题:C# KeyValuePair.Split方法的具体用法?C# KeyValuePair.Split怎么用?C# KeyValuePair.Split使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KeyValuePair
的用法示例。
在下文中一共展示了KeyValuePair.Split方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: show_picture
public void show_picture( PictureBox pic, WebcamOptions form)
{
this.pic = pic;
Dictionary<int, string> devices = this.get_devices();
if (videosources.Count > this.device.Key && devices.Count > 1)
{
videoSource = new VideoCaptureDevice(videosources[this.get_device().Key].MonikerString);
string solution = "0;0";
solution = get_solution(videoSource).Value;
//Dem Webcam Objekt ermittelte Auflösung übergeben
videoSource.DesiredFrameSize = videoSource.VideoCapabilities[Convert.ToInt32(solution.Split(';')[1])].FrameSize;
//pic.Size = new Size(videoSource.DesiredFrameSize.Width, videoSource.DesiredFrameSize.Height);
//form.Size = new Size(videoSource.DesiredFrameSize.Width +100, videoSource.DesiredFrameSize.Height +100);
pic.SizeMode = PictureBoxSizeMode.Zoom;
//
//NewFrame Eventhandler zuweisen anlegen.
//(Dieser registriert jeden neuen Frame der Webcam)
videoSource.NewFrame += new AForge.Video.NewFrameEventHandler(videoSource_NewFrame);
// videoSource.SnapshotFrame += new AForge.Video.NewFrameEventHandler(videoSource_NewFrame);
//Das Aufnahmegerät aktivieren
videoSource.Start();
}
}