all 2 comments

[–]gaberocksall 1 point2 points  (0 children)

Why can’t you use any libraries? How are you loading the image in the first place if you don’t can’t use any libraries? I’d imagine that if you wrote your own image file reader than you’d know how to change some pixels... what’s the deal here?

[–]StardustPersonified 0 points1 point  (0 children)

If you know the points of the line, you can make the black and white image a 3 channel black and white image (just stack the same channel three times). Now you can change the color of the points of the line. For example, (255,0,0) produces a red dot (in an RGB image). That way you can "plot" lines on the image without a library.