EDN Admin
Well-known member
Hi, im 19 years old girl who likes programming. Im new here, and hope i can get some help from kind guys here who do share same interest with me.
Im from Japan so pardon my english language.
Anyway, about my problems, i need C# source code to capture/record video from webcam and save it as a file.
this is my source
<blockquote><table width="85% <tr><td class=quoteTable><table width="100% <tr><td width="100%" valign=top class=txt4> <font color="#ff0000" size=2>
//----------------------------------------------------------------------------------------// </font><font size=2>
</font><font color="#ff0000" size=2>//Webcam </font><font size=2>
</font><font color="#ff0000" size=2>//To start capturing from webcam </font><font size=2>
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> button6_Click(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
toolStripStatusLabel1.Text = </font><font color="#800000" size=2>"Capturing Live! On Webcam"</font><font size=2>;
}
</font><font color="#ff0000" size=2>//Button to pause capturing from webcam </font><font size=2>
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> button12_Click(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
toolStripStatusLabel1.Text = </font><font color="#800000" size=2>"Webcam Paused"</font><font size=2>;
}
</font><font color="#ff0000" size=2>//Button to stop capturing from webcam </font><font size=2>
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> button13_Click(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
toolStripStatusLabel1.Text = </font><font color="#800000" size=2>"Webcam Stoped"</font><font size=2>;
}
</font><font color="#ff0000" size=2>//Button to save captured movie from webcam </font><font size=2>
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> button14_Click(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
toolStripStatusLabel1.Text = </font><font color="#800000" size=2>"File Saved"</font><font size=2>;
}
</font><font color="#ff0000" size=2>//Button for webcam setting </font><font size=2>
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> button7_Click(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
toolStripStatusLabel1.Text = </font><font color="#800000" size=2>"Webcam Settings"</font><font size=2>;
}
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> Form1_Load(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
} </font><font color="#ff0000" size=2>
//----------------------------------------------------------------------------------------//
</td></tr></table></td></tr></table></blockquote>
hope anyone can give me where to get the source code in c# to display live video from webcam
argato gozaimas... ne. </font>
View the full article
Im from Japan so pardon my english language.
Anyway, about my problems, i need C# source code to capture/record video from webcam and save it as a file.
this is my source
<blockquote><table width="85% <tr><td class=quoteTable><table width="100% <tr><td width="100%" valign=top class=txt4> <font color="#ff0000" size=2>
//----------------------------------------------------------------------------------------// </font><font size=2>
</font><font color="#ff0000" size=2>//Webcam </font><font size=2>
</font><font color="#ff0000" size=2>//To start capturing from webcam </font><font size=2>
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> button6_Click(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
toolStripStatusLabel1.Text = </font><font color="#800000" size=2>"Capturing Live! On Webcam"</font><font size=2>;
}
</font><font color="#ff0000" size=2>//Button to pause capturing from webcam </font><font size=2>
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> button12_Click(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
toolStripStatusLabel1.Text = </font><font color="#800000" size=2>"Webcam Paused"</font><font size=2>;
}
</font><font color="#ff0000" size=2>//Button to stop capturing from webcam </font><font size=2>
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> button13_Click(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
toolStripStatusLabel1.Text = </font><font color="#800000" size=2>"Webcam Stoped"</font><font size=2>;
}
</font><font color="#ff0000" size=2>//Button to save captured movie from webcam </font><font size=2>
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> button14_Click(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
toolStripStatusLabel1.Text = </font><font color="#800000" size=2>"File Saved"</font><font size=2>;
}
</font><font color="#ff0000" size=2>//Button for webcam setting </font><font size=2>
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> button7_Click(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
toolStripStatusLabel1.Text = </font><font color="#800000" size=2>"Webcam Settings"</font><font size=2>;
}
</font><font color="#0000ff" size=2>private</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> Form1_Load(</font><font color="#0000ff" size=2>object</font><font size=2> sender, </font><font color="#008080" size=2>EventArgs</font><font size=2> e)
{
} </font><font color="#ff0000" size=2>
//----------------------------------------------------------------------------------------//
</td></tr></table></td></tr></table></blockquote>
hope anyone can give me where to get the source code in c# to display live video from webcam
argato gozaimas... ne. </font>
View the full article