Anything similar to the function from processing Get() in openFrameworks?

I was wondering if there is a function in openFrameworks that pretty much acts the same as the Get() function in processing.

Link: https://processing.org/reference/get_.html

This?

http://openframeworks.cc/documentation/graphics/ofImage/#show_grabScreen