2017년 1월 7일 토요일

applying an image to a canvas from a URL please help!!!


If anyone can help with this issue, I would be so grateful. I need to find a way to use the URL of an image to apply this image to a canvas. I can do this with a saved image but not through the URL. Do you know how to do this or even a pointer in the right direction? Any help would be appreciated. 

-- 
Not sure if this will work, but you can try and let us know.  Get the picture from the URL into an image component, and then assign the canvas image to the Image.Picture property...  Just a guess but probably worth a try...

--
Something like this might work for you:

...then follow Enis's suggestion   .....set Canvas1.BackgroundImage to Image1.Picture.    You can probably just swap the Image1.Picture block in the blocks above for a Canvas.BackgroundImage.

--
Thank you for your help, i'll try it.

--
see the documentation Accessing Images and Sounds
example: 
set Canvas.BackgroundImage to "https://puravidaapps.com/images/logo.png"

--

댓글 없음:

댓글 쓰기