download images
DownloadImage(tvurl.Get(i), ImageViews(i))
i have not save the pictures to anywhere,and i need to set the pictuers in (10%x, 15%y)
the loadbitmapresize maybe works ,actually something wrong happend , help needed,THAMKS
///////////////////////////////////////////
LoadBitmapResize(ImageViews(i), ImageViews(i), 10%x, 15%y, True)'设置图片大小
B4X:
Sub DownloadImage(Link As String, iv As ImageView)
Dim job As HttpJob
job.Initialize("", Me) 'note that the name parameter is no longer needed.
job.Download(Link)
Wait For (job) JobDone(job As HttpJob)
If job.Success Then
iv.Bitmap = job.GetBitmap 'replace with iv.Bitmap = job.GetBitmap in B4A / B4i
End If
job.Release
End Sub
DownloadImage(tvurl.Get(i), ImageViews(i))
i have not save the pictures to anywhere,and i need to set the pictuers in (10%x, 15%y)
the loadbitmapresize maybe works ,actually something wrong happend , help needed,THAMKS
///////////////////////////////////////////
LoadBitmapResize(ImageViews(i), ImageViews(i), 10%x, 15%y, True)'设置图片大小