CaptureToBitmap doesn't accept ViewCaptureSettings

I’m trying to use Rhino.Display.ViewCapture.CaptureToBitmap method, and this method accepts one of two inputs, either RhinoVIew or ViewCaptureSettings; I’ve used it with RhinoView and it works fine but when I use same RhinoView to construct a ViewCaptureSettings object, this is the error it gives me:

Traceback (most recent call last):
  File "rhinocode:///grasshopper/1/ad308b76-a5b0-4d9a-b228-928ec77e6b0e/f83bd7d6-faf3-4e21-83be-97e9f3304fd6", line 11, in <module>
TypeError: Rhino.Display.ViewCaptureSettings value cannot be converted to Rhino.Display.RhinoView in method System.Drawing.Bitmap CaptureToBitmap(Rhino.Display.RhinoView)

It’s a known bug and I have it on my list to fix

RH-85062 Pynet gets confused about methods with same name but one is static

1 Like

I added an apostrophe to the topic title because doesnt ≠ doesn’t

1 Like

well thank you :slight_smile: good job keep it up

1 Like