I have some issues with running Rhino on remote desktop. In general, everything works, all my unit tests are run, etc. But when I try to make a screenshot during the program working, it becomes strange.
- When I run test with opened window of remote desktop, everything works and screenshots are fine.
- When I run test and close the window of remote desktop, the program works in background, test are passed, but all screenshots are empty without even background.
Are there any special setting for background mode or something like that?
Code which was used for getting screenshots
foreach (RhinoView view in PluginModel.Instance.Doc.Views)
{
ViewCaptureSettings settings = new ViewCaptureSettings(view, new Size(1920, 1080), 72);
settings.RasterMode = true;
Bitmap bitmap = ViewCapture.CaptureToBitmap(settings);
bitmaps.Add(bitmap);
}