After a little but more research, it seems like I need to transfer the external image to the local file system before creating a bitmap and region. I tried the following code, but I now get a runtime error elsewhere in the code.
m.compositor = CreateObject("roCompositor")
http = CreateObject("roUrlTransfer")
bmp = CreateObject("roBitmap", "tmp:/thumbnailSprite.png")]
region = CreateObject("roRegion", bmp, 0, 0, 50, 50)
m.compositor.NewSprite(0, 0, region)
The runtime error is: BRIGHTSCRIPT: ERROR: roUrlTransfer: creating MAIN|TASK-only component failed on RENDER threadIt looks like the line that is causing the runtime error is:
http = CreateObject("roUrlTransfer")Again what am I doing wrong?