Hi, me again...
I try to draw a bitmap to a TextField with the code below, but it does nothing
What am I doing wrong ?
Image is a valid bitmap that displays just fine in an imageview.
I try to draw a bitmap to a TextField with the code below, but it does nothing
What am I doing wrong ?
B4X:
Dim cvs As Canvas
cvs.Initialize(EtSignature)
Dim right, bottom As Int
Dim right As Int = EtSignature.Left + EtSignature.Width
Dim bottom As Int = EtSignature.Top + EtSignature.height
Dim DestRect As Rect
DestRect.Initialize(EtSignature.Left, EtSignature.Top, right, bottom)
cvs.DrawBitmap(Image, DestRect) 'draws the bitmap to the destination rectangle.
Image is a valid bitmap that displays just fine in an imageview.