Drawing a line image


#1

How to draw a single line to image.


#2

Graphics::drawLine, Graphics::drawVerticalLine, etc etc… It’s all there in the Graphics class.


#3

Thanks for the quick reply. But I want to draw a line and want to capture it in image pointer.
How to do that


#4

The Graphics class has a constructor that takes an image to draw onto. This is explained in the description of the Image class… Perhaps there’s somewhere else I should have explained it to make it more obvious?