iOS Question How to erase DrawTextRotated?

rfresh

Well-Known Member
Licensed User
Longtime User
I'm using DrawTextRotated and when I go to draw new text, the previous text is still there. How can I remove the previous text so it doesn't bleed through?

Thank you...

B4X:
Sub DrawTextOnPanel(pnl As Panel, text As String, x1 As Double, x2 As Double, color As Int, alignment As String, textAngle As Int)
    Dim CanvasHolder As Canvas
    Dim font3 As Font = Font.CreateNew2("Helvetica", 24)

    CanvasHolder.Initialize(pnl)
    CanvasHolder.DrawTextRotated(text, (pnl.Width*x1)/100, (pnl.Height*x2)/100, font3, color, alignment, textAngle)
    CanvasHolder.Refresh
End Sub
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…