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

How to save pictures

Started by KPeace74, 28 June 2014 - 01:42 AM
KPeace74 #1
Posted 28 June 2014 - 03:42 AM
I'm trying to make and nPaint like program where you click on a spot and a color will appear on that pixel. I see that in other nPaint programs, you are able to save what you have drawn by creating another program in the computer and writing where you have clicked with the paint letters (0-9, a-f). I would like to know how to save pictures like that for my own program.
Lyqyd #2
Posted 28 June 2014 - 03:52 AM
Have you tried reading through the code from the paint program?
KPeace74 #3
Posted 28 June 2014 - 04:05 AM
Have you tried reading through the code from the paint program?
I have and with my little experience with CC and programming in general, I am quite lost in such a complex program and don't know where to look for the saving, and if I did find where the function was, I doubt I would recognize it as the saving function.
Lyqyd #4
Posted 28 June 2014 - 04:10 AM
It's pretty clearly labeled in the paint program, which you can see here.
KPeace74 #5
Posted 28 June 2014 - 04:15 AM
It's pretty clearly labeled in the paint program, which you can see here.
Thank you, I was looking at a different program that, if I remember correctly, was upwards of 3000 lines. I'll take a look at this, hopefully it helps. Thanks again!