videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice ); VideoCaptureDevice videoSource = new VideoCaptureDevice(videoDevices[0].MonikerString ); videoSource.NewFrame += new NewFrameEventHandler( video_NewFrame ); // selectedCamera.DesiredFrameSize = new Size(200, 200); //no any result // videoSource.Start( ); private void video_NewFrame( object sender, NewFrameEventArgs eventArgs ) { MessageBox.Show(eventArgs.Frame.Size.ToString()); //message box shows (640,480) not as configred //... }
public static ResizeNearestNeighbor size = new ResizeNearestNeighbor(200,200); // Bitmap bitmap = size.Apply( eventArgs.Frame); MessageBox.Show(bitmap.Size.ToString()); //working fine //..
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)