Hi, I have a C# component that has preview overrides, and I’m trying to export a screen capture with a 2x bigger size. The 3D geometry looks correct, they are just there with the right size with thinner edge lines.
However, the 2D texts do not seem correct. They seem duplicated by 2x2.
I’ve run into this issue as well, afraid I don’t have a solution. My workaround has been to use the highest resolution monitor available, and run Rhino in fullscreen while capturing. That can get you close to 4K output.
Here are my findings.
Though I didn’t have a 4K display, I tried several ideas, virtual desktop, connecting 3 monitors etc. None of them worked.
Simply it seems like this is not a C#/RhinoCommon issue, because ViewCaptureCommand replicates the same issue.
Finally, I found a workaround. It seems like this is a multifunction related to the screen dpi. The CaptureToBitmap accepts ViewCaptureSettings as an options provider. There, you can set a higher dpi. This way, the texts will get smaller. But anyway there are no duplicates any longer.
nice trick @mikity_kogekoge! why I only obtain wires and not the current display mode?
Also, compare to viewcapturetofile, wires look jagged.
could this work with transparency too?
I searched a little bit and it seems like when ViewCapture.CaptureToBitmap(ViewCaptureSettings) is called OpenGL is disabled. That’s why duplicates of text does not happen. When ViewCapture.CaptureToBitmap(RhinoView) is called, OpenGL (and the current display mode) is used. In that case, texts are duplicated.