Yes it actually works ;-)
What happens, after acquiring the photo with CameraEX2 I apply a label on the image and save it.
B4XImageView1.Bitmap = RotateJpegIfNeeded(bmp, Data)
DateTime.DateFormat = "yyyy-MM-dd HH:mm:ss"
lblData.Text = DateTime.Date(DateTime.Now) 'Imposta il testo sulla foto. La Label è inserita nel Designer
Sleep(1000)
pnlBackground.SetVisibleAnimated(500, False)
Sleep(500)
bmp = pnlBackground.Snapshot 'Prende lo Snapshot del Panel che contiene la foto e il testo
Dim NomeFile As String = extDBUtils.Ticks2Date("yyyy-MM-dd-HH-mm-ss",DateTime.Now) & ".jpg"
Dim out As OutputStream = File.OpenOutput(VideoFileDir, NomeFile, False) 'Salva la foto con il testo
bmp.WriteToStream(out, 100, "JPEG")
out.Close
exif.Initialize(VideoFileDir, NomeFile)
exif.setAttribute(exif.TAG_GPS_LATITUDE, Latitudine)
exif.setAttribute(exif.TAG_GPS_LONGITUDE, Longitudine)
after OutputStream you can no longer assign GPS values because the file has evidently lost some info.
I hope I explained myself well.
Last question, do you think it would be possible to have an upgrade of the CameraEx2 so that it can also record in Horizontal?
Thank you for everything.