How to create NSImage from NSView which is not completely visible?

I have an NSView in NSScrollView from which I want to create NSImage. Because it is not always fully visible in NSScrollView, and it may even be larger than the screen size. Can someone help me? Thank.

+3
source share
2 answers

Alternatively, depending on what you need the image for, consider creating a PDF file for viewing .

+1
source

Source: https://habr.com/ru/post/1772277/


All Articles