Desire: Gravity.Zoom in an image, as Gravity.Fill while maintaining the aspect ratio?
J jota Active Member Licensed User Longtime User Jun 26, 2012 #1 Desire: Gravity.Zoom in an image, as Gravity.Fill while maintaining the aspect ratio?
AHilberink Active Member Licensed User Longtime User Sep 23, 2013 #2 I think I am searching for this. I need a kind of ScaleToFit function. Gravity.Fill is stretching and changes the aspect ratio. Does someone has a solution yet?
I think I am searching for this. I need a kind of ScaleToFit function. Gravity.Fill is stretching and changes the aspect ratio. Does someone has a solution yet?
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2013 #3 You can use the ResizeBitmap sub I posted here: http://www.b4x.com/android/forum/threads/live-wallpaper-background.24907/#post-144401
You can use the ResizeBitmap sub I posted here: http://www.b4x.com/android/forum/threads/live-wallpaper-background.24907/#post-144401