title: UI Automation : Save Automation Element as image?
body: <p>I have an use case as follows,</p>
  
  <pre><code>    Process proc = Process.Start("myproc.exe");
      AutomationElement automationElement = AutomationElement.RootElement.FindFirst(TreeScope.Children,
                  new System.Windows.Automation.PropertyCondition(AutomationElement.ProcessIdProperty,
                      proc.Id));
      var imageAutomationElmt = automationElement .FindFirst
              (TreeScope.Descendants, new System.Windows.Automation.PropertyCondition
                  (AutomationElement.AutomationIdProperty, "imageData"));
  </code></pre>
  
  <p>The above code fetches me the imageData from my UI. Is there a way for me to save the imageData (of "Image" type) as a file. I tried using the screen capture method, but since I have my app with scroll bar enabled, taking a screen shot doesnt work properly. </p>
  
  <p>Is there a way to save image data to file from automation element of an image?
  TIA.</p>