Eyeshot 10 WinForms API Reference
DrawTextOutlined Method

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class : DrawTextOutlined Method
The text's x coordinate
The text's y coordinate (from the bottom of the viewport)
The text string to draw
The text font
The text color
The outline color
The outline thickness
The text alignment
Draws a text on the ViewportLayout's client area.
Syntax
'Declaration
 
Public Sub DrawTextOutlined( _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal text As String, _
   ByVal textFont As Font, _
   ByVal textColor As Color, _
   ByVal outlineColor As Color, _
   ByVal outlineThickness As Single, _
   ByVal textAlign As ContentAlignment _
) 
public void DrawTextOutlined( 
   int x,
   int y,
   string text,
   Font textFont,
   Color textColor,
   Color outlineColor,
   float outlineThickness,
   ContentAlignment textAlign
)

Parameters

x
The text's x coordinate
y
The text's y coordinate (from the bottom of the viewport)
text
The text string to draw
textFont
The text font
textColor
The text color
outlineColor
The outline color
outlineThickness
The outline thickness
textAlign
The text alignment
Remarks
For better performances use GetTextOutlinedImage, create the texture and draw it directly.
See Also

Reference

ViewportLayout Class
ViewportLayout Members
DrawText(Int32,Int32,String,Font,Color,ContentAlignment) Method
devDept.Eyeshot.ViewportLayout.DrawImage(System.Int32,System.Int32,System.Drawing.Bitmap,System.Drawing.ContentAlignment,System.Boolean,System.Boolean)