Lua libcurl

  • #40, by ke4Friday, 31. March 2017, 13:08 4 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 4 years ago
    Some interesting possibilities here.

    Great Poster

    354 Posts

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

    6983 Posts

  • #43, by darren-beckettMonday, 24. April 2017, 14:09 4 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) 
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    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

    354 Posts

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

    Thread Captain

    1438 Posts

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

    Great Poster

    354 Posts

Write post