I have an NSView subclass called StretchView. Here's what I want to do:
Since the StretchView has scrollbars and is extended via those scrollbars I want to be able to grab the entire StretchView (including the area not visible on screen) and save that to a file.
Now here's what I've been able to do:
I've been able to grab the frame of the StretchView and save it as a JPEG. But i want the entire view (even the parts that are not visible). E.g.:
I have a box like this: and the visible data is represented by V and the invisible data is represented by D:
DDDDDDDDDDDDDDDD
DD_______________DD
DD|VVVVVVVVVVVV|DD
DD|VVVVVVVVVVVV|DD
DD|VVVVVVVVVVVV|DD
DD|VVVVVVVVVVVV|DD
DD|VVVVVVVVVVVV|DD
DD|VVVVVVVVVVVV|DD
DD--------------------DD
DDDDDDDDDDDDDDDD
I want to grab the visible data (V) along with the hidden data (D) and save it as a JPEG.
Since the StretchView has scrollbars and is extended via those scrollbars I want to be able to grab the entire StretchView (including the area not visible on screen) and save that to a file.
Now here's what I've been able to do:
I've been able to grab the frame of the StretchView and save it as a JPEG. But i want the entire view (even the parts that are not visible). E.g.:
I have a box like this: and the visible data is represented by V and the invisible data is represented by D:
DDDDDDDDDDDDDDDD
DD_______________DD
DD|VVVVVVVVVVVV|DD
DD|VVVVVVVVVVVV|DD
DD|VVVVVVVVVVVV|DD
DD|VVVVVVVVVVVV|DD
DD|VVVVVVVVVVVV|DD
DD|VVVVVVVVVVVV|DD
DD--------------------DD
DDDDDDDDDDDDDDDD
I want to grab the visible data (V) along with the hidden data (D) and save it as a JPEG.