Menu
Login
Language
DE EN FR ES IT CZ
Back

Lua libcurl

  • #40, by ke4 Friday, 31. March 2017, 13:08 9 years ago Quote
    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-beckett Friday, 31. March 2017, 16:13 9 years ago Quote
    Some interesting possibilities here.

    Great Poster

    386 Posts

  • #42, by afrlme Friday, 31. March 2017, 18:00 9 years ago Quote
    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

    7290 Posts

  • #43, by darren-beckett Monday, 24. April 2017, 14:09 9 years ago Quote
    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

    386 Posts

  • #44, by SimonS Monday, 24. April 2017, 14:17 9 years ago Quote
    Only images work, no gifs, no svgs, no flash.

    Thread Captain

    1621 Posts

  • #45, by darren-beckett Monday, 24. April 2017, 14:21 9 years ago Quote
    Ok, Thanks for the prompt reply.

    Great Poster

    386 Posts