I am using the following code to scale images
The original image size is 512x512 px. The scaled size randomly set between 50x50px to 120x120px
I noticed the resulting scaled images always have jagged edges. I tried setting the Filter to both True or False but the result is the same.
B4X:
Sub CreateScaledBitmap(Original As Bitmap, Width As Int, Height As Int, Filter As Boolean) As Bitmap
Dim r As Reflector
Dim b As Bitmap
b = r.RunStaticMethod("android.graphics.Bitmap", "createScaledBitmap", _
Array As Object(Original, Width, Height, Filter), _
Array As String("android.graphics.Bitmap", "java.lang.int", "java.lang.int", "java.lang.boolean"))
Return b
End Sub
The original image size is 512x512 px. The scaled size randomly set between 50x50px to 120x120px
I noticed the resulting scaled images always have jagged edges. I tried setting the Filter to both True or False but the result is the same.