8 posts
Posted 15 July 2018 - 03:15 AM
Hey guys,
I want to display an image. My folder is :
+rom
-image.nfp
-program.lua
My program is:
image = paintutils.loadImage("image")
paintutils.drawImage(image,1,1)
The problem is, that image is 'nil'. I know this, because I printed image after loading it. Why doesn't work it?
Edited on 15 July 2018 - 01:22 AM
1715 posts
Location
ACDC Town
Posted 15 July 2018 - 04:03 AM
The filename for the image is "image.nfp", so should you not be using paintutils.loadImage() on "image.nfp"?
8 posts
Posted 15 July 2018 - 04:17 AM
What?
I want to draw this image, I made with paint. So I need this 2 functions or not?
7083 posts
Location
Tasmania (AU)
Posted 15 July 2018 - 06:49 AM
image = paintutils.loadImage("image.nfp")
8 posts
Posted 15 July 2018 - 06:21 PM
image = paintutils.loadImage("image.nfp")
I did that, it didn't work too. But I heard about something like a bug in the Beta build of CC. There was a Topic in this forum about, but it hasn't worked by me(
http://www.computercraft.info/forums2/index.php?/topic/29601-problem-with-paintutilsdrawing-an-image/page__view__get new post) . How can I fix this?
Edited on 15 July 2018 - 04:28 PM
7083 posts
Location
Tasmania (AU)
Posted 16 July 2018 - 02:59 AM
If you're getting that specific error, then you'll simply need to update your ComputerCraft installation. Some sources are available through the links in my signature - I recommend SquidDev's CC:Tweaked.