Forum Discussion

360tv's avatar
360tv
Streaming Star
12 years ago

getting a black image on roScreen

I'm getting a black square where I should be getting the image i'm trying to display.

screen.Clear(&h00000000)
print "overlay URL = " + device.overlayurl
http = CreateObject("roUrlTransfer")
http.SetUrl(device.overlayurl)
http.GetToFile("tmp:/overlay.png")


dfDrawImage(screen, "tmp:/overlay.png",0,0)
screen.swapbuffers()


that code runs once per 10 seconds. If I moved the draw and swap functions into an message = invalid loop, it will flicker sometimes displaying the image, but mostly not. The image is to display over a videoplayer, 95% transparent.

I'm sure it's something stupid.
No RepliesBe the first to reply