hi how can i rotate my bmp saved in my device and dont lost quality?
i only need rotate this
i m using the RSImageProcessing to rotate and later i save this but it save with a very bad quality
have another way to rotate image?
native android method to rotate and save later rotated?
i only need rotate this
i m using the RSImageProcessing to rotate and later i save this but it save with a very bad quality
have another way to rotate image?
native android method to rotate and save later rotated?
B4X:
Dim bmp As Bitmap
Dim rbmp As RSImageProcessing
Dim casa As String
Dim exif As ExifData
rbmp.Initialize
bmp.Initialize(FP, "1.jpg")
exif.Initialize(FP, "1.jpg")
casa = exif.getAttribute(exif.TAG_ORIENTATION)
If casa = 6 Then
exif.setAttribute(exif.TAG_ORIENTATION, 1)
exif.saveAttributes
If bmp.width>bmp.height Then
bmp = rbmp.Rotate(bmp, 90)
rbmp.writeBitmapToFile(bmp,FP ,"1.jpg", 100 )