Page 302 of 182? Did you mean the BeginnersGuide?Look at page 302 in the User's Guide.
Dim Font As Typeface
Dim Canvas As Canvas
Dim imgCC As Bitmap
Font = Typeface.LoadFromAssets("CORSIVA.ttf")
imgCC.InitializeMutable(146dip,26dip)
Canvas.Initialize2(imgCC)
Canvas.DrawText("A", 0, 26, Font, 18, Colors.White, "LEFT")
Canvas.DrawText("B", 73, 26, Font, 18, Colors.White, "LEFT")
Canvas.DrawText("C", 146, 26, Font, 18, Colors.White, "LEFT")
Canvas.DrawText("A", 0, 26, Font, 18, Colors.Blue, "CENTER")
Canvas.DrawText("B", 73, 26, Font, 18, Colors.Blue, "CENTER")
Canvas.DrawText("C", 146, 26, Font, 18, Colors.Blue, "CENTER")
End If
Canvas.DrawText("A", 0dip, 26dip, Font, 18, Colors.White, "LEFT")
Canvas.DrawText("A", 0, 26, Font, 18, Colors.White, "LEFT")
shouldn´t it beinstead ofB4X:Canvas.DrawText("A", 0dip, 26dip, Font, 18, Colors.White, "LEFT")
? The same for all others too...B4X:Canvas.DrawText("A", 0, 26, Font, 18, Colors.White, "LEFT")
How do i do that sir? Would glad if you will guide me the code neededclear the canvas and draw all again