[英]Is there a wpf webcam control with zoom feature?
I need a WPF control with zooming enabled? 我需要启用缩放功能的WPF控件吗? I am currently using WPFmediakit and it works good but is there a way to do zoom using multiples of doubles.
我目前正在使用WPFmediakit,效果很好,但是有一种方法可以使用双精度倍数进行缩放。
You should be able to use WPF's built-in ScaleTransform. 您应该能够使用WPF的内置ScaleTransform。 WPF already has the built-in ability to scale anything, so you shouldn't need the VideoCaptureElement control from the media kit to provide any zooming support of its own.
WPF已经具有内置的缩放功能,因此您不需要媒体工具包中的VideoCaptureElement控件即可提供任何缩放功能。
I think you need to be more clear about what it exactly is you want. 我认为您需要更加清楚自己想要的是什么。 If you want to use the camera's (optionally) built-in zoom then that has nothing to do with WPF.
如果要使用相机的(可选)内置变焦,则与WPF无关。 If on the other hand you want to zoom in on the image-output (Framebuffer) of the camera, you can just use WPF's ScaleTransform.
另一方面,如果您想放大摄像机的图像输出(帧缓冲区),则可以使用WPF的ScaleTransform。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.