Page 1 of 1

Download image into a brush

Posted: Sun Feb 07, 2021 3:23 pm
by mrupp
Hi
I would like to download an image into a brush. That's what I came up with:

Code: Select all

DownloadFile("https://www.hollywood-mal.com/img/title.png", { File = "temp.brush", Adapter = "hurl" }) ; using hurl for https
LoadBrush(1, "temp.brush")
Is there a better way to do this, without having to save a temp file to the filesystem?

Cheers,
Michael

Re: Download image into a brush

Posted: Sun Feb 07, 2021 8:41 pm
by plouf
check in manual the function DefineVirtualFileFromString()
in manual examples have exactly what you are searching for

Re: Download image into a brush

Posted: Sun Feb 07, 2021 9:27 pm
by mrupp
That's exactly what I was looking for. THANKS!