Lua libcurl

  • #40, by ke4Friday, 31. March 2017, 13:08 7 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

    Key Killer

    810 Posts


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

    Great Poster

    384 Posts

  • #42, by afrlmeFriday, 31. March 2017, 18:00 7 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

    Imperator

    7278 Posts

  • #43, by darren-beckettMonday, 24. April 2017, 14:09 7 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)

    Great Poster

    384 Posts

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

    Thread Captain

    1580 Posts

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

    Great Poster

    384 Posts