setPixel in java?
Hi again! :)
I'm working on rewriting my paint program, and I am supposed to draw it without using the defailt .drawLine and .drawSquare methods.
The problem is not in the calculations, nor in the coding of them, but more in how you can set a pixel to a color in java?
I've tried googling it, but I couldn't really find how to do it.
How do you draw pixel by pixel without using the default methods? I asume the drawLine etc. functions use some sort of setPixel. What is it? :)
Thank you for reading,
Strange assignment, not allowing you to use the Graphics class method.
Have you looked in the API doc at all the setPixel methods available? There are lots of them in different classes. Go to the S-Index and use the browser's Search