http://ninjatrader.com/support/helpG..._rendering.htm
// create a 3 component color using rgb values SharpDX.Color3 dxColor3 = new SharpDX.Color3(255, 0, 0); // create a 4 component color using rgb + alpha (transparency) SharpDX.Color4 dxColor4 = new SharpDX.Color4(dxColor3, [COLOR=Red][B]50[/B][/COLOR]); [COLOR=SeaGreen]// should be 0.5[/COLOR] // solid color brush uses a Color4 during construction SharpDX.Direct2D1.SolidColorBrush argbColorBrush = new SharpDX.Direct2D1.SolidColorBrush(RenderTarget, dxColor4);
Comment