开发者

.net DirectX Flip or Mirror a IGraphBuilder (webcam)

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜