This is not WPF, this is a WinForms application. ImageViewer is a class provided by EmguCV that inherits from System.Windows.Forms.Form , not a single WPF goes to them.
You will need to create a new WPF project, integrate your code and create your own WPF view to place the image, where you can set transformations on the elements of the document.
If you just want to use the WinForms viewer, you can reference the ImageViewer::ImageBox . The ImageBox class has built-in support for zooming and panning. It has a ZoomScale property that can be set programmatically, and also gives you access to the HorizontalScrollBar and VerticalScrollBar properties to control the panning location.
viewer.ImageBox.ZoomScale = 2.0; // zoom in by 2x
source share