Hello everyone,
I have an app that captures a user's signature from a Panel used as a canvas and saves it to a PNG file:
Sub Save(SD As SignatureData, Dir As String, Name As String)
Dim out As OutputStream
out = File.OpenOutput(Dir, Name, False)
SD.Canvas.Bitmap.WriteToStream(out, 100, "PNG")
out.Close
End Sub
I then print that image with the EscPOSPRINTER class together with other content in a 40‑column report.
On B4A
12.80 everything works as expected. After updating to
13.40, it looks like the image transparency is lost: the printout shows solid/filled rectangles instead of the signature over a transparent background.
This seems to be related to how the image is saved. If I capture and save the signature using an APK compiled with
12.80, then update the app to the exact same code compiled with
13.40, the printout remains correct (no dark rectangles, transparency preserved). If I capture and save the signature with the
13.40 build, I get the dark smudges.
Any ideas ?