Hi,
I am trying to make a timestamp part of my code which clicks the internal camera. I have the files being saved as jpeg. I was searching through options of putting in a text on the image and save it but could find the right way.
I tried the canvas mode but dont know how to save the text and image file together as one image. This is basically a sort of watermarking requirement.
I guess it wouldnt be advisable to use heavy libraries like "RSImageProcessing" for this basic need. Can anyone please guide me on the right way to do this...
I am not able to make out where to use the Canvas to input the text and impose it on the bmp file in the below code. Need help please...
I am trying to make a timestamp part of my code which clicks the internal camera. I have the files being saved as jpeg. I was searching through options of putting in a text on the image and save it but could find the right way.
I tried the canvas mode but dont know how to save the text and image file together as one image. This is basically a sort of watermarking requirement.
I guess it wouldnt be advisable to use heavy libraries like "RSImageProcessing" for this basic need. Can anyone please guide me on the right way to do this...
I am not able to make out where to use the Canvas to input the text and impose it on the bmp file in the below code. Need help please...
B4X:
Dim forDate As String
DateTime.DateFormat ="HH.mm.ss_dd-MM-yyyy"
forDate=DateTime.Date(DateTime.now)
Dim tempstr As String
tempstr = forDate
'Convert the image to png low res
btmp.Initialize(File.DirRootExternal & "/download/Images/",tempstr & ".jpeg")
Dim out As OutputStream
out = File.OpenOutput(File.DirRootExternal, "/download/Images/" & tempstr & ".jpg", False)
btmp.WriteToStream (out,25,"JPEG")
out.Close