Sub Print3D(ByVal g As Graphics, ByVal text As String, ByVal coords As Point, _ ByVal col As Color, ByVal fnt As Font) Print3D(g, text, coords, col, fnt, Color.Black, 1, 1) End Sub
Sub Print3D(ByVal g As Graphics, ByVal text As String, ByVal coords As Point, _ ByVal col As Color, ByVal fnt As Font, ByVal shadowCol As Color, _ ByVal shadowOffsetX As Integer, ByVal shadowOffsetY As Integer) Dim sbrush As New SolidBrush(shadowCol) g.DrawString(text, fnt, sbrush, coords.Y + shadowOffsetX, _ coords.Y + shadowOffsetY) sbrush.Dispose()
Dim fbrush As New SolidBrush(col) g.DrawString(text, fnt, fbrush, coords.X, coords.Y) fbrush.Dispose() End Sub |