views:

35

answers:

2

I'm trying to "capture" or record the vector display information of a WPF (maybe Silverlight) application and play it back.

However, instead of capturing bitmaps of what is rendered, I would like to capture the vector information BEFORE it gets rendered so that I can play it back at different resolutions without loss of quality.

Ideally, I'd like to do this without having to add assemblies into my app (but willing to do so if necessary).

I've looked into the WPF rendering pipeline and cannot find an appropriate starting point (or, stated differently, I couldn't figure it out). Maybe the VisualTreeHelper class?

A: 

See also: http://stackoverflow.com/questions/2752343/screenshot-from-wpf-application-as-svg-vector-graphic/2808929

Jeff Wilcox
I'm hoping to figure out a solution w/o having to instrument the app. Any ideas for that?
smitchell360
A: 

It sounds like you want the CompositionTarget.Rendering static event.
This event fires right before a frame is rendered out to the screen and should give you access to the visual tree before it was rendered.

JustinAngel
Very cool. This is definitely where I need to start. Thanks a million.
smitchell360