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

CaptureToBitmap with TransparentBackground

$
0
0

@gerardb wrote:

Hello,

I’ve some trouble with CaptureToBitmap, I use a conduit (c#)

PreDrawObjects(DrawEventArgs e)
{
DisplayMaterial MyMaterial = new Rhino.Display.DisplayMaterial(Color.Red);
e.Display.DrawBrepShaded(brep, MyMaterial);          
e.Display.Draw3dText(MyText, Color.Black, plan);
}

ViewCapture.TransparentBackground = false, it is Ok, Brep RED and Drawtext BLACK in the bitmap

ViewCapture.TransparentBackground = true, Brep and Drawtext are WHITE in the bitmap

Did I miss something ?

Thanks

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8539

Trending Articles