Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8531

CaptureToBitmap()

$
0
0

@Matthieu_from_NAVINN wrote:

Hi,
I’ve got an issue with the function .capturetobitmap : the elements drawn on my custom display conduit are not captured. How could I fix this?

I tried

Dim myview As Display.RhinoView = doc.Views.ActiveView
Dim Bmp As Drawing.Bitmap = myview.CaptureToBitmap(New Size(myview.Size.Width, myview.Size.Height), False, False, False)

and

Dim myview As Display.RhinoView = doc.Views.ActiveView
            Dim view_capture = New Display.ViewCapture With {
                .Width = myview.ActiveViewport.Size.Width,
                .Height = myview.ActiveViewport.Size.Height,
                .ScaleScreenItems = False,
                .DrawAxes = False,
                .DrawGrid = False,
                .DrawGridAxes = False,
                .TransparentBackground = True
            }
            Dim Bmp As Drawing.Bitmap = view_capture.CaptureToBitmap(myview)

but in both cases the display conduit elements are not captured.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8531

Trending Articles