vb.net – In WPF How Do You Capture Part of a Canvas to Save as a BMP or GIF? – Education Career Blog

I have an application that generates a replay of Air Traffic and I need to allow the user to capture parts of the canvas so it can be exported as a BMP of GIF. I did this in VB6, but not sure how to do it in WPF. I plan on drawing a rectangle around the intended capture area following the mouse till the user triggers the capture.




The WPF Interactive Image Cropping Control mentioned in this post might be close to what you’re after.

You might also check out the RenderTargetBitmap class to copy the selected region.

Hope this helps.

Leave a Comment