Lua libcurl

  • #40, z ke4Friday, 31. March 2017, 13:08 hodinky 8 years ago
    This Draw function is independent from the libcurl? Can you draw any image? Or what exactly is this function for? Can you guys please name some examples of what would you use this for?

    Btw will this be drawn over videos too? Is it possible to draw an animation? Damn so many questions grin

    Zabiják klíčů

    810 Posts


  • #41, z darren-beckettFriday, 31. March 2017, 16:13 hodinky 8 years ago
    Some interesting possibilities here.

    Čestný člen

    384 Posts

  • #42, z afrlmeFriday, 31. March 2017, 18:00 hodinky 8 years ago
    This Draw function is independent from the libcurl? Can you draw any image? Or what exactly is this function for? Can you guys please name some examples of what would you use this for?

    Btw will this be drawn over videos too? Is it possible to draw an animation? Damn so many questions grin
    haha I bet Simon regrets creating this feature now. grin

    Imperátor

    7285 Posts

  • #43, z darren-beckettMonday, 24. April 2017, 14:09 hodinky 8 years ago
    downloadMemory("http://url...", function(s,code,param) 
      sprite = graphics.loadMemoryJPG(s)
    -- sprite = graphics.loadMemoryPNG(s)
    -- sprite = graphics.loadMemoryWEBP(s)
    end)
    
    downloadMemory("http://url...", function(s,code,param) 
      print(s) -- html
    end) 
    

    Hi, are there any other image formats that will work for the sprite draw callbacks?

    GIF, SVG, SWF?

    sprite = graphics.loadMemoryGIF(s)
    sprite = graphics.loadMemorySVG(s)
    sprite = graphics.loadMemorySWF(s)

    Čestný člen

    384 Posts

  • #44, z SimonSMonday, 24. April 2017, 14:17 hodinky 8 years ago
    Only images work, no gifs, no svgs, no flash.

    Kapitán

    1582 Posts

  • #45, z darren-beckettMonday, 24. April 2017, 14:21 hodinky 8 years ago
    Ok, Thanks for the prompt reply.

    Čestný člen

    384 Posts