This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Agoldfish's profile picture

Question on the Paintutils API.

Started by Agoldfish, 15 March 2014 - 02:40 PM
Agoldfish #1
Posted 15 March 2014 - 03:40 PM
Hai, I was making a background for something, and paintutils.loadImage won't return anything, nor will it load my image. I looked on the Wiki and all it said is this.

So I guess what I'm asking for is… Why isn't it loading my image?

The code I experimented with:
Spoiler

local function loadImage()
paintutils.loadImage(".loadback")
end
loadImage()
CometWolf #2
Posted 15 March 2014 - 03:50 PM
Putting a function in your own non returning function, will obviously result in it not returning a value…
MKlegoman357 #3
Posted 15 March 2014 - 03:57 PM
Also, you do understand that paintutils.loadImage just loads it (returns it loaded into a table) and doesn't draw it? You have to use paintutils.drawImage to draw it.

I looked on the Wiki and all it said is this.

Are you serious?


EDIT: I don't even know why I did that… [facepalm]MKlegoman357[/facepalm] Sorry about that LeGoldFish
Edited on 15 March 2014 - 03:11 PM
Agoldfish #4
Posted 15 March 2014 - 03:58 PM
Oh. I do feel dumb. Thanks guys.