Draw a Diagonal Lines in the image

Hello. I have an image and wants to draw multiple diagonal lines in the image. I have the height and width of the image


I see some examples but those are by using graphics library. I don't know how to use DrawLine function or by Bresenham's line algorithm . can anyone please help me out.

Thank you
Last edited on
How are you updating the image? Are you changing individual pixel values?
Registered users can post here. Sign in or register to post.