I am running grasshopper headlessly thanks to rhino inside.
Is it possible to create a Rhino doc, set a viewport, adjust the camera, and capture a viewport into a raster file?
I hope that something like below would be possible
var doc = Rhino.RhinoDoc.ActiveDoc;
var view = doc.Views.ActiveView;
var viewportImage =view.CaptureToBitmap();
viewportImage.Save("C:/Users/myName/Desktop/image.png");