Screen/window snapshot

Is it possible to make a snapshot (create an Image) of the entire screen, or of a window via JUCE?

Not of the whole screen - that’d be an OS command (and in fact, might have security restirctions on some OSes these days).

You can snapshot a juce component directly though, there’s a method to do that.