开发者

.net DirectX Flip or Mirror a IGraphBuilder (webcam)

开发者 https://www.devze.com 2023-03-24 07:20 出处:网络
Been going round in circles, new to directx and using directshow in c#I need to flip and mirror a webcam stream, could anyone provide pointers on how to do this from a graphBuilder.

Been going round in circles, new to directx and using directshow in c# I need to flip and mirror a webcam stream, could anyone provide pointers on how to do this from a graphBuilder.

Tha开发者_如何转开发nks


You could use a full-screen quad to flip the image by changing the texture coordinates in DirectX. I.e. define 4 points with UV coordinates from 1.0 to 0.0 (instead of 0.0 to 1.0) to flip the image. Alternatively you can use dotNet to do it using Image.RotateFlip() with the appropriate param from System.Drawing.RotateFlipType

0

精彩评论

暂无评论...
验证码 换一张
取 消