Private fnt As Font
fnt = New Font(d3dDev, New Drawing.Font("Arial", 12))
...
Public Sub DrawText(ByVal Output As String)
fnt.DrawText(Nothing, Output, New Rectangle(50, 50, 0, 0), DrawTextFormat.Left Or DrawTextFormat.Top, Color.White)
End Sub
Can you tell me what is wrong?
Managed DX -> DrawText?
Hello, I''m using VB.NET and simply want to render text. But for some reason, it isn''t displayed. I call the function between Device.Begin and Device.End
try DrawTextFormat.NoClip instead, or give the rectangle a size, not only a position like New Rectangle(50, 50, 100, 100)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement