how to mirror the live video which capture from camera

Nov 21, 2013 at 8:01 AM
Hi there, I am using WPF Mediakit to capture live video from camera, it works well, so ,I want to know how to mirror the live video which capture from camera. Thank u so much.
Nov 27, 2013 at 12:10 AM
Do you want to mirror the video or the captured stream?
Nov 29, 2013 at 8:05 AM
JLuisEstrada wrote:
Do you want to mirror the video or the captured stream?
Anyone is ok.
Jan 4, 2014 at 8:28 AM
what do you mean when you say mirror? A horizontal flip?
you could use a Transform or just set FlowDirection to use right-to-left for the control upon which you draw (assuming you can get a Brush from MediaKit to set as Fill for a Rectangle control)
Jun 11, 2014 at 3:15 PM
Hi,

I have some probs to mirror the video capture from my webcam.

Do you have any solutions?

Thank's.
Jun 16, 2014 at 7:46 AM
``` <media:VideoCaptureElement x:Name="player" RenderTransformOrigin="0.5,0.5" >
        <media:VideoCaptureElement.RenderTransform>
            <ScaleTransform ScaleX="-1"/>
        </media:VideoCaptureElement.RenderTransform>
</media:VideoCaptureElement>
```
Jun 17, 2014 at 9:08 AM
Thank's for your answer.

I did that :
 ScaleTransform st = new ScaleTransform();
st.ScaleX = -1;
 _videoCaptureElement.RenderTransform = st;
_videoCaptureElement.RenderTransformOrigin = new System.Windows.Point(0.5, 0.5);
But the component disapear of my windows with that code. I tryed your xaml code and it works fine.
I need to do the same in code behind.

Thank's.
Jul 7, 2014 at 5:02 AM
you can try like this:
var scaleForm=_videoCaptureElement.RenderTransform as ScaleTransform;
scaleForm.ScaleX = -1;//get the RenderTransform and you can do some what you want.
and you should use the xaml code.