View capture to bitmap with "Title" In RhinoCommon

View.CaptureToBitmap does not include Title, even if View.TitleVisible=true.

It was possible when I use former "DotNetSDK " with argument , How can I do it in RhinoCommon ?

My program is here.

            Rectangle rc = new Rectangle(0, 0, 480, 480);
            Rhino.Display.RhinoView View = Doc.Views.Add("Snapshot",
                rc, true);
            View.TitleVisible = true;
        Size sz = new Size(480, 480);
        var bitmap = View.CaptureToBitmap(sz, Rhino.Display.DisplayModeDescription.FindByName("Shaded"));

What function did you call in Rhino_DotNet? I don’t believe it is the equivalent to RhinoCommon’s View.CaptureToBitmap…

Thank you dale,

Yes, CaptureToBitmap is not in DotNetSDK .

But In DotNetSDK, This code can include title. I’d like to include view title(caption) in bitmap.

            bmp = new System.Drawing.Bitmap(1, 1);
            if (!view.ScreenCaptureToBitmap(ref bmp, true, false)) ....

In RhinoCommon, I think "View.TitleVisible = true " is good to control title visiblity for some capture method of view.

The Rhino_DotNet code you show provides the functionality of Rhino’s ScreenCaptureToClipboard/File commands, as where the RhinoCommon code provides the functionality of Rhino’s ViewCaptureToClipboard/File commands. The features do two different things.

RhinoCommon does not have a functional equivalent to ScreenCaptureToClipboard/File.

Just curious, why do you need screen captures with titles?

You should be able to just use Graphics.CopyFromScreen for this

Love the avatar… :wink:

1 Like

For those on phones and small monitors:


Thank you dale, it was great help for me.

Because, I’d like to take some snapshots of views to tell my intention of design or to tell operation procedures.

“Title” is important information for them to understand each snapshot combine with rhino operations especially using custom CPlane even if the world axis is visible on it.

Hi dale,

The Created Date Time of Image file by “ScreenCaptureToFile” in Explorer is very funny.

The timestamp seems to use Locale time “North america”.

Would you please check this ?

In what way? What am I supposed to check?