Size Pictures to fit Screen

CodeDancer

Member
Licensed User
Longtime User
Is there any way to shrink an oversized picture to fit the screen using B4A?
I am trying to display a 1264 x 944 jpeg on a 1024 x 522 screen. I am using an ImageView and thought that perhaps by manipulating the size of the View added and the SetLayout function I could make the thing fit, but no luck, so far.

And yes, I know about PhotoShop, but that would spoil all the fun.
 

CodeDancer

Member
Licensed User
Longtime User
Half way there

Thanks Margret,

Your solution works great to stretch the image to fill the screen. Is there any way to reduce the size of the image in order to maintain the aspect ratio and view the whole thing without distortion? Blank areas are fine.

Sorry I wasn't clear enough, before, and I am grateful for your assistance.
 
Upvote 0
Top