Douglas Farias Expert Licensed User Longtime User May 27, 2014 #1 hi why when i save a bitmap to file png it save with a very bad quality? i m already using 100 to save but is very bad result =( here is my code B4X: Dim out2 As OutputStream fileName2 = "background.png" out2 = File.OpenOutput (FP, fileName2 , False) cvs2.Bitmap.WriteToStream(out2, 100, "PNG") out2.Close anyone know about this?
hi why when i save a bitmap to file png it save with a very bad quality? i m already using 100 to save but is very bad result =( here is my code B4X: Dim out2 As OutputStream fileName2 = "background.png" out2 = File.OpenOutput (FP, fileName2 , False) cvs2.Bitmap.WriteToStream(out2, 100, "PNG") out2.Close anyone know about this?
Erel B4X founder Staff member Licensed User Longtime User May 28, 2014 #2 How are you drawing the bitmap to the canvas? Upvote 0
Douglas Farias Expert Licensed User Longtime User May 28, 2014 #3 yes i crop the image with canvas later i save this canvas to image 1 crop is 30%x 30%x 30%y 30%Y and crop 2 is 0%x 50%x 0%y 100%y <<<< the problem is this crop this take a original picture - 50% but take a picture with bad quality http://www.b4x.com/android/forum/threads/resize-and-crop.19550/#post-113705 Upvote 0
yes i crop the image with canvas later i save this canvas to image 1 crop is 30%x 30%x 30%y 30%Y and crop 2 is 0%x 50%x 0%y 100%y <<<< the problem is this crop this take a original picture - 50% but take a picture with bad quality http://www.b4x.com/android/forum/threads/resize-and-crop.19550/#post-113705