I very often need the following function in my classes:
I would be happy if CreateScaledBitmap could be included in core.jar in a future b4a version.
B4X:
Sub CreateScaledBitmap(Original As Bitmap, Width As Int, Height As Int) As Bitmap
Dim r As Reflector
Dim b As Bitmap
Dim filter As Boolean: filter=True
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
I would be happy if CreateScaledBitmap could be included in core.jar in a future b4a version.