Dim Bmp As Bitmap
Bmp.InitializeMutable(Wbmp,Hbmp)
Dim C As Canvas
C.Initialize2(Bmp)
C.DrawText(Str,x,y,Typeface.SANS_SERIF,25dip,Colors.Blue,"CENTER")
and i get this error
Error compiling program.
Error description: An Activity context is required.
This class has a process context.
Adding a global "Activity object" variable will fix this issue.
Occurred on line: 154
C.DrawText(Str,x,y,Typeface.SANS_SERIF,25dip,Colors.Blue,"CENTER")
Word: drawtext
Canvas itself is an "activity object". You can declare the canvas object in Class_Globals. It will work, assuming that you don't need a process global instance of this class.