RenderTarget.DrawText(
"hello",
textFormat,
new SharpDX.RectangleF(100, 100, 300, 30),
brush.ToDxBrush(RenderTarget));
using(SharpDX.Direct2D1.Brush dxBrush = brush.ToDxBrush(RenderTarget))
{
RenderTarget.DrawText(
"hello",
textFormat,
new SharpDX.RectangleF(100, 100, 300, 30),
dxBrush);
}

Comment