0
我们使用WebEye.Controls.Wpf作为网络摄像头控制器,但由于我们已经将平板电脑更改为华硕变形金刚,图像颠倒了。WebEye.Controls.Wpf图像倒过来
WPF:
<wpf:WebCameraControl x:Name="webCameraControl" Margin="150,50,150,100" />
C#
private void start_Click(object sender, RoutedEventArgs e)
{
if (fullOrderId == "")
{
MessageBox.Show("You need order id to take pictures", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
Close();
}
else
{
var cameraId = (WebCameraId)cams.SelectedItem;
//RotateTransform rotateTransform = new RotateTransform(180);
//webCameraControl.RenderTransform = rotateTransform;
webCameraControl.StartCapture(cameraId);
}
}
正如你所看到的,我已经试过180度旋转,但图像是一样的。
不起作用额外指定旋转的中心点。仍然颠倒,即使它旋转了90度,它仍然是颠倒和垂直的 – arti
您是否尝试在开始捕捉后应用旋转? – lhildebrandt
仍然相同。我真的不想切换到不同的相机控制,这很容易,做我们需要的。 – arti