I am writing a sreen cut APP on mac OS X, i can only get the visible part of window like this:
CGImageRef imageRef = CGWindowListCreateImage(CGRectNull,
kCGWindowListOptionIncludingWindow,
self.windowID,
kCGWindowImageBoundsIgnoreFraming);
_windowImage = [[NSImage alloc] initWithCGImage:imageRef size:self.windowFrame.size];
CGImageRelease(imageRef);
But when the window can scroll, i want to get the whole part not only the visible part, does anyone have some advices? Thanks!