Download binary image into var, convert to bitmap & show in GUI

Post your working scripts, libraries and tools
DJAnonimo
Posts: 2
Joined: 11 Feb 2018, 17:36

Download binary image into var, convert to bitmap & show in GUI

11 Feb 2018, 18:43

Hi all,

You need to download a picture (JPG, PNG etc...) into memory and show it in your GUI without writing a file?

After few hours of research and answers on question like: How can it be done? Why this way? Why me?
Here is a simple example.

I don't know why global or "byref" need to be used for input Imagebin into a function. This is only when downloaded with DownloadBin(). If downloaded with UrlDownloadToFile it can be as a function parameter.
Improvements are always welcome :)

Have Fun!

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Last edited by DJAnonimo on 06 Mar 2018, 14:06, edited 4 times in total.
User avatar
tidbit
Posts: 1062
Joined: 29 Sep 2013, 17:15
Location: USA

Re: Download binary image into var, convert to bitmap & show in GUI

11 Feb 2018, 20:10

welcome back to the forums/ahk, DJAnonimo!
looks.. complicated and great.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 14 guests