Click here to Skip to main content
Sign Up to vote bad
good
See more: C#
Hi Friends
class VideoCaptureDevice, DesiredFrameSize property is not working for me, tell me where is mistake in (1)? same as (1) problem I also want to set custom DesiredFrameRate property.
(1):
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       
 //...
}
(2)its working fine
i also tried the following and it is working fine on the frame.
public static ResizeNearestNeighbor size = new ResizeNearestNeighbor(200,200);
//
Bitmap bitmap = size.Apply( eventArgs.Frame);
   MessageBox.Show(bitmap.Size.ToString());  //working fine
//..
Posted 7 hrs ago
Edited 6 hrs ago


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 585
1 Maciej Los 395
2 OriginalGriff 345
3 Dave Kreskowiak 325
4 Mohammed Hameed 303
0 Sergey Alexandrovich Kryukov 5,619
1 OriginalGriff 4,532
2 CPallini 2,667
3 Róhãn Lëuvä 2,337
4 Tadit Dash 1,443


Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 13 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid