title: How to take screen shot of a area that ignores your applications window on Mac OS X
body: <p>I am trying to make something like pixie app on Mac OS X. I am doing this by taking screenshot of a region around my mouse and putting the screenshot in an image view. </p>
  
  <pre><code>image = CGDisplayCreateImageForRect(displays[i],
                                      CGRectMake(x_start, y_start, width, height));
  </code></pre>
  
  <p>the problem is,  its also capturing the window of my application. How can I take a screen shot that treats my application's window as transparent, and only takes whats behind my apps window</p>
  
  <p>Thanks in advance. </p>