1 Private voidCameraconn ()2 {3 4VideoSource =NewVideocapturedevice (Videodevices[tscbxcameras.selectedindex]. monikerstring);5Videosource.desiredframesize =NewSize (640,480);6Videosource.desiredframerate = -;7Videosource.newframe + =NewNewframeeventhandler (finalvideo_newframe);8 Videosource.start ();9 }Ten One voidFinalvideo_newframe (Objectsender, Newframeeventargs EventArgs) A { -Bitmap video =(Bitmap) EventArgs.Frame.Clone (); - if(_inifile.readinteger ("Video Rotation 0|180","Videoflip",0) == the) the { - video. RotateFlip (ROTATEFLIPTYPE.ROTATE180FLIPX); - } -Picvideo.image =video; +}
The principle is to get a bitmap object, then invert the bitmap object and assign it to the picture control.
Search Engine Daquan: www.helpme.so
Heat Map Bar: www.retu8.com
Sexy beauty: http://www.8kmm.com
Code record: Use Aforge.net to invert the video image by 180 degrees