我不能用小型basic下载想像力。之后,我安装了Visual,但它不起作用。有人能帮我解决这个问题吗:[此处输入图像描述](https://i.stack.imgur.com/zcYzq.png))
我想下载小Basic上的imagine。
发布于 2022-11-21 16:41:03
图像可以预先加载到ImageList中。在这里,您可以看到图像的大小,以及下载是否有效。
'Imagine = ImageList.LoadImage("https://aka.ms/mz1")
'...("https://social.msdn.microsoft.com/Forums/getfile/1353849")
Imagine1 = ImageList.LoadImage("http://litdev.co.uk/game_images/rubic.png")
Imagine2 = ImageList.LoadImage("http://smallbasic.com/drop/soko/sokocuteff.png")
TextWindow.WriteLine(ImageList.GetHeightOfImage(Imagine1))
TextWindow.WriteLine(ImageList.GetHeightOfImage(Imagine2))
TextWindow.WriteLine(ImageList.GetWidthOfImage(Imagine2))
GraphicsWindow.Height = ImageList.GetHeightOfImage(Imagine2)
GraphicsWindow.Width = ImageList.GetWidthOfImage(Imagine2)
GraphicsWindow.DrawImage(Imagine2,0,0)
GraphicsWindow.DrawImage(Imagine1,100,150)
GraphicsWindow.DrawImage(Imagine1,200,250)似乎只有http: works,而不是https:

https://stackoverflow.com/questions/74507195
复制相似问题