Click here to Skip to main content
15,898,893 members
Home / Discussions / C#
   

C#

 
QuestionRe: Dll LibMain Function? Pin
OptiPlex13-Dec-08 3:37
OptiPlex13-Dec-08 3:37 
AnswerRe: Dll LibMain Function? Pin
User 665813-Dec-08 4:24
User 665813-Dec-08 4:24 
GeneralRe: Dll LibMain Function? Pin
OptiPlex13-Dec-08 4:27
OptiPlex13-Dec-08 4:27 
GeneralRe: Dll LibMain Function? Pin
User 665813-Dec-08 5:11
User 665813-Dec-08 5:11 
GeneralRe: Dll LibMain Function? Pin
Dave Kreskowiak13-Dec-08 5:40
mveDave Kreskowiak13-Dec-08 5:40 
GeneralRe: Dll LibMain Function? Pin
OptiPlex13-Dec-08 6:06
OptiPlex13-Dec-08 6:06 
AnswerRe: Dll LibMain Function? Pin
Giorgi Dalakishvili13-Dec-08 4:38
mentorGiorgi Dalakishvili13-Dec-08 4:38 
QuestionSometing wrong in my code,can you check it?thx~! [modified] Pin
franva13-Dec-08 0:49
franva13-Dec-08 0:49 
hello guys,

I am a beginner.I am interesting in Aforge.net.It is a really fantanstic framework~!
I want to know how to use AForge.net in C# to connect to a Camera.I found the Motion_Detection article but it's too diffcult to me.I can not to understand it.~_~;

So what I want to know is just a very simple example to show how to connect to a camera and get a image from the camera. Thanks~!

I am really really really really eager to know the answer asap.

MSN:franva008@hotmail.com
Confused | :confused:
now this is my code:
private void button1_Click(object sender, EventArgs e)
{

// enumerate video devices
AForge.Video.DirectShow.FilterInfoCollection videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
// create video source
VideoCaptureDevice videoSource = new VideoCaptureDevice(videoDevices[0].MonikerString);
//VideoCaptureDevice videoSource = new VideoCaptureDevice("Acer HD Crystal Eye webcam");
// set NewFrame event handler
videoSource.NewFrame += new NewFrameEventHandler( video_NewFrame );
// start the video source
videoSource.DesiredFrameRate = 25;
videoSource.DesiredFrameSize = new Size(pictureBox1.Width, pictureBox1.Height);
videoSource.Start( );

}

private void video_NewFrame(object sender, NewFrameEventArgs eventArgs)
{
// get new frame
//Bitmap bitmap = eventArgs.Frame;

pictureBox1.Image = (Image)((object)bitmap);
//pictureBox1.Image = (Image)eventArgs.Frame;

// process the frame
}

Error message:invalue Parameters

modified on Saturday, December 13, 2008 11:31 AM

Questionhow to retrive the excutions file of a MimeType? Pin
leeoze13-Dec-08 0:03
leeoze13-Dec-08 0:03 
GeneralRe: how to retrive the excutions file of a MimeType? Pin
Luc Pattyn13-Dec-08 0:33
sitebuilderLuc Pattyn13-Dec-08 0:33 
AnswerRe: how to retrive the excutions file of a MimeType? Pin
Giorgi Dalakishvili13-Dec-08 1:20
mentorGiorgi Dalakishvili13-Dec-08 1:20 
GeneralRe: how to retrive the excutions file of a MimeType? -> found the answer Pin
leeoze14-Dec-08 9:50
leeoze14-Dec-08 9:50 
QuestionArray List Problem Pin
ais0712-Dec-08 21:49
ais0712-Dec-08 21:49 
AnswerRe: Array List Problem Pin
CodingYoshi12-Dec-08 22:01
CodingYoshi12-Dec-08 22:01 
GeneralRe: Array List Problem Pin
Luc Pattyn12-Dec-08 22:50
sitebuilderLuc Pattyn12-Dec-08 22:50 
GeneralRe: Array List Problem Pin
ais0712-Dec-08 23:03
ais0712-Dec-08 23:03 
GeneralRe: Array List Problem Pin
Mycroft Holmes12-Dec-08 23:13
professionalMycroft Holmes12-Dec-08 23:13 
AnswerRe: Array List Problem Pin
Brij12-Dec-08 23:09
mentorBrij12-Dec-08 23:09 
GeneralRe: Array List Problem Pin
Lev Danielyan13-Dec-08 0:11
Lev Danielyan13-Dec-08 0:11 
GeneralRe: Array List Problem Pin
#realJSOP13-Dec-08 0:21
professional#realJSOP13-Dec-08 0:21 
AnswerRe: Array List Problem Pin
#realJSOP13-Dec-08 0:19
professional#realJSOP13-Dec-08 0:19 
QuestionIs using a DLL not open source? Pin
adeydas12-Dec-08 21:22
adeydas12-Dec-08 21:22 
AnswerRe: Is using a DLL not open source? Pin
Mark Churchill13-Dec-08 2:28
Mark Churchill13-Dec-08 2:28 
AnswerRe: Is using a DLL not open source? Pin
PIEBALDconsult13-Dec-08 5:07
mvePIEBALDconsult13-Dec-08 5:07 
QuestionHow to Read/Write DBF file In C# use IO/Stream (not OLEDB) Pin
tinh cau12-Dec-08 20:52
tinh cau12-Dec-08 20:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.