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

Background image created from paintuitls not covering the entire monitor

Started by Exanadu, 21 January 2016 - 04:51 AM
Exanadu #1
Posted 21 January 2016 - 05:51 AM
so I'm drawing images for background graphics using paint. but when i call the image in my code the image has 1 line along the bottom and on the right side of the image. The image is set to mon.setCursorPos(1,1) is there a way to make it fit the whole screen without the 1 pixel gap on the bottom and right?
Bomb Bloke #2
Posted 21 January 2016 - 07:47 AM
Well, the issue boils down to paint being unable to use the whole display to let you draw, therefore you can't draw fullscreen images with it.

One way around this (of many) is to manually edit the image file in a text editor, and add the bits you want (use the colours API for reference).

Another is to hook up an external monitor, one with a larger resolution than the regular display. Then use the monitor script to run paint on that.
wilcomega #3
Posted 21 January 2016 - 08:27 PM
Another option would be to use a third party paint program that allows for greater sizes, or make one yourself