Sascha-L / WPF-MediaKit

Microsoft Public License
367 stars 117 forks source link

Image cropped when Scale and Layout set to 125% #99

Closed sekulicb closed 4 years ago

sekulicb commented 4 years ago

When you set Scale and Layout to 125%, the image is "zoomed in" by default. When the snapshot is taken, then only the part that was visible in VideoCaptureElement is captured, the rest is cropped and you can see a black space that should be rest of your picture.

black space wpfmedia

sekulicb commented 4 years ago

Solved by wrapping VideoCaptureElement in ViewBox.