DrawString2
Previous  Next

Draws a string on the image.
Syntax: DrawString2 (string As String, FontSize As Single, brush As SolidBrush, rect As Rectangle)

Example:

'Add a Drawer object named drawer, a Rectangle object named rect1 and a Brush object named brush1.
Sub Globals

End Sub

Sub App_Start
      Form1.Show
      drawer.New1("Form1",false)
      brush1.New1(cRed)
      rect1.New1 (30,30,12,200)
      drawer.DrawString2("Hello world!!",10, brush1.Value, rect1.Value)
      drawer.Refresh2(rect1.Value)  
End Sub