hi all, how can i fit a image at center of my image view on b4j?
i dont find
dim lala as rect <<
how to convert this code
ImageView Bitmap centered
to b4j to fit the image at center? i need make a crop center at the image
i m loading a image from my pc, the path and file name as in a list, this os working fine, but if the image its horizontal this is very strange
i dont find
dim lala as rect <<
how to convert this code
ImageView Bitmap centered
to b4j to fit the image at center? i need make a crop center at the image
i m loading a image from my pc, the path and file name as in a list, this os working fine, but if the image its horizontal this is very strange
B4X:
Sub listaimagens_SelectedIndexChanged(Index As Int)
Log(Index)
Log(listaimagens.Items.Get(Index))
Log(File.GetFileParent(listaimagens.Items.Get(Index)))
Log(File.GetName(listaimagens.Items.Get(Index)))
imgimagens.PreserveRatio = True
imgimagens.SetImage(fx.LoadImageSample(File.GetFileParent(listaimagens.Items.Get(Index)), File.GetName(listaimagens.Items.Get(Index)),imgimagens.Width, imgimagens.Height))
End Sub