hello, thank you for answering.
i have an additional question: i want to draw a line on the screen, but only if the pixels where the line would be drawn are white before drawing. how could this be done?
i hope you could understand my question, otherwise please ask.
hello, the problem is that a line is bigger than just one pixel. if the line is horizonal or vertical it is no problem for me to check all the pixels on which the line would be, but what if i draw i line with a 3pixel sized pen from left top to the right bottom of the screen? how can i find out exactly which pixels would be drawn?
quite complicated to explain but what i basically want is: just draw a line if it would be drawn on white pixels. otherwise drop an error...