tags:

views:

126

answers:

1

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.

Thanks,

Dave

+3  A: 

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.

dommer
Dommer,I am trying to capture part of a Canvas, and that part most likely will not start with the upper left corner 0,0. I got RenderTargetBitmap to work, but I can not figure out how to set the upper left corner. Thanks,Dave