I am trying to make something like a pixie application on Mac OS X. I am doing this by taking a screenshot around the mouse and putting a screenshot in the image.
image = CGDisplayCreateImageForRect(displays[i], CGRectMake(x_start, y_start, width, height));
the problem is that it also captures the window of my application. How can I take a screenshot that treats my application window as transparent and takes only what is outside my application window.
Thanks in advance.
source share