J johan vetsuypens Member Licensed User Longtime User Dec 21, 2014 #1 Hello, I want to add at runtime an image from the Dirassets folder. Everything works fine, but I can't find the definition to set the Contentmode of the Imageview at runtime to 'FIT' ImageViewSplashLogo.Initialize("") ImageViewSplashLogo.Bitmap = LoadBitmap(File.DirAssets, "dl_logo.jpg") ImageViewSplashLogo.ContentMode = ???? PageSplash.RootPanel.AddView(ImageViewSplashLogo,50%x - (ImageViewSplashLogo.Width/2), 40%y,90%x,40%y) Any ideas ? Thanks, Johan
Hello, I want to add at runtime an image from the Dirassets folder. Everything works fine, but I can't find the definition to set the Contentmode of the Imageview at runtime to 'FIT' ImageViewSplashLogo.Initialize("") ImageViewSplashLogo.Bitmap = LoadBitmap(File.DirAssets, "dl_logo.jpg") ImageViewSplashLogo.ContentMode = ???? PageSplash.RootPanel.AddView(ImageViewSplashLogo,50%x - (ImageViewSplashLogo.Width/2), 40%y,90%x,40%y) Any ideas ? Thanks, Johan
Erel B4X founder Staff member Licensed User Longtime User Dec 22, 2014 #2 B4X: ImageView1.ContentMode = ImageView1.MODE_FIT Upvote 0