DrawTextOnScreen
From SwinGame
DrawTextOnScreen draws texts to the screen. Drawing text is a slow operation, and drawing it to a bitmap, then drawing the bitmap to screen is a good idea. Do not use this technique if the text changes frequently. This routine will ignore the camera setting.
Where is it: SGSDK_FONT
Contents |
Languages
Pascal
Added in version 1.1:
procedure DrawTextOnScreen(theText: String; textColor: Colour; theFont: Font; pt: Point2D);
In version 1.0:
procedure DrawTextOnScreen(theText: String; textColor: Colour; theFont: Font; x, y: Integer);
C#
Added in version 1.1:
public void Text.DrawTextLinesOnScreen(string theText, Color textColor, Color backColor, Font theFont, FontAlignment align, Rectangle rectangle);
In version 1.0:
public void Text.DrawTextOnScreen(string theText, Color textColor, Font theFont, int x, int y);
Visual Basic .NET
Added in version 1.1:
Public Sub text.DrawTextLinesOnScreen(ByVal theText As String, ByVal textColor As Color, ByVal backColor As Color, ByVal theFont As Font, ByVal align As FontAlignment, ByVal rectangle As Rectangle)
In version 1.0:
Public Sub Text.DrawTextOnScreen(ByVal theText As String, ByVal textColor As Color, ByVal theFont As Font, ByVal x As Integer, ByVal y As Integer)
Visual Basic 6
Added in version 1.1:
Public Sub Text.DrawTextOnScreen_Point(ByVal theText As String, ByVal textColor As Integer, ByVal theFont As Fonts, ByVal position As Point2D)
In version 1.0:
Public Sub Text.DrawTextOnScreen(ByVal theText As String, ByVal textColor As Long, ByVal theFont As Fonts, ByVal x As Long, ByVal y As Long)

