Download image into a brush

Find quick help here to get you started with Hollywood
Post Reply
User avatar
mrupp
Posts: 147
Joined: Sun Jan 31, 2021 7:44 pm
Location: Switzerland
Contact:

Download image into a brush

Post 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
plouf
Posts: 462
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Download image into a brush

Post by plouf »

check in manual the function DefineVirtualFileFromString()
in manual examples have exactly what you are searching for
Christos
User avatar
mrupp
Posts: 147
Joined: Sun Jan 31, 2021 7:44 pm
Location: Switzerland
Contact:

Re: Download image into a brush

Post by mrupp »

That's exactly what I was looking for. THANKS!
Post Reply