9Mcode comment |
|
|
|
|
|
|
- - - - - - - - - - - - - - ผู้ให้การสนับสนุน- - - - - - - - - - - - - -
|
|
|
กระทู้ #1878 [.NET] (จาก IP: 118.173.114.241)
C#ด่วน คือ ต้องการ save รูปที่ได้จากกล้องเวปแคมใน PictureBox ทำไงครับ
c# คือผมเเสดงภาพที่ได้จากกล้องลงนัย PictureBox ได้เเล้ว และผมต้องการจะ save รูป ที่มันขึ้น PictureBox ต้องทำไงครับ
ขอ code หน่วยครับ
|
จากคุณ
:
tonarse / tonarse@hotmail.com [2008-03-08 20:52:53]
|
|
ความคิดเห็น #26817 (จาก IP: 58.10.140.147)
ตัวอย่างนะครับ ผมนำมาใหเดเป็นแนว จาก msnd นะครับ http://msdn.microsoft.com
[C#] private void button1_Click(object sender, System.EventArgs e) { // Takes the selected text from a text box and puts it on the clipboard. if(textBox1.SelectedText != "") Clipboard.SetDataObject(textBox1.SelectedText); else textBox2.Text = "No text selected in textBox1"; } private void button2_Click(object sender, System.EventArgs e) { // Declares an IDataObject to hold the data returned from the clipboard. // Retrieves the data from the clipboard. IDataObject iData = Clipboard.GetDataObject(); // Determines whether the data is in a format you can use. if(iData.GetDataPresent(DataFormats.Text)) { // Yes it is, so display it in a text box. textBox2.Text = (String)iData.GetData(DataFormats.Text); } else { // No it is not. textBox2.Text = "Could not retrieve data off the clipboard."; } }
|
จากคุณ
:
aaa / teen.top99@hotmail.com [2008-06-01 11:50:54]
|
|
|
- - - - - - - - - - - - - - ผู้ให้การสนับสนุน- - - - - - - - - - - - - -
|
|
|
|
|
|
|