Draw a line inside of an existing image
Posted: Sat Mar 24, 2012 8:44 pm
This should be easy, but I'm puzzled....
I have an image, and I want to draw a simple line (with my penColor, penHeight end penWidth) inside the same image object. How do I do this with code?
I dont want to fiddle with the imageData... way too complicated.
Overlaying a graphic with a line on the image and than taking a snapshot could work but I do not like this idea.
I'm looking for something like:
choose line tool
draw a line from 0,0 to 50,50 inside image id 1 <-- I'm missing this command
Any suggestions?
Thanks.
Mario
I have an image, and I want to draw a simple line (with my penColor, penHeight end penWidth) inside the same image object. How do I do this with code?
I dont want to fiddle with the imageData... way too complicated.
Overlaying a graphic with a line on the image and than taking a snapshot could work but I do not like this idea.
I'm looking for something like:
choose line tool
draw a line from 0,0 to 50,50 inside image id 1 <-- I'm missing this command
Any suggestions?
Thanks.
Mario