Save view to png

Is it possible to save a view in rhino to a JPG image using VBA?

https://developer.rhino3d.com/api/RhinoCommon/html/P_Rhino_DocObjects_Tables_ViewTable_ActiveView.htm

scroll down to the examples and there is one for VB