Page 1 of 1

setBackgroundImage()

Posted: Mon Feb 13, 2012 10:09 pm
by Rurik
I can't figure out how to properly use this function. All I want to do is place a 16x16px .png image in the top right corner of my screen (I actually don't care where it goes, so long as it shows up!).

Could someone show me an example of how you'd place a simple image on the screen?

Re: setBackgroundImage()

Posted: Tue Feb 14, 2012 3:16 am
by Sheia
Sure!
Code: [show] | [select all] lua
createLabel("NameofLabel", ScreenWidth-16,0,16,16,1)
setBackgroundImage("NameofLabel", [[locationofimage.png]])
Just need to copy that code into a script.
NameofLabel can be changed to anything you like.
ScreenWidth would need to be set to the width of your display.
locationofimage.png would need to be the full location and name of your image.

I would look at info in the forums on Geyser and Vyzor for other ways to do this.
The Wiki helps a lot too!

Re: setBackgroundImage()

Posted: Tue Feb 14, 2012 7:35 pm
by Rurik
awesome. I figured it out. Thank you.