messycan
May 11th, 2008, 11:17 AM
What is the best way of drawing on an actual image with the mouse? im trying to find the best, and most efficient way of doing this.
For example:
Lets say I have a white canvas named canvas.jpg(which i draw in Paint)...I want to draw on that canvas and be able to detect certain regions on the image that I do not want to draw on...for example if the mouse tried to draw on the coordinate (0, 0, 20, 20), it will do some other processing such as alerting the user, etc.
The coordinates would be loaded from a file either on my webserver or another...but thats the least of my concerns because that can be coded easily.
I really do not know in which forum to post...because this can be cross listed into the AJAX, PHP, etc boards...
I just need a push into the right direction on how to get started.
If the question is vague, please let me know and I will clarify a bit more...Thanks.
For example:
Lets say I have a white canvas named canvas.jpg(which i draw in Paint)...I want to draw on that canvas and be able to detect certain regions on the image that I do not want to draw on...for example if the mouse tried to draw on the coordinate (0, 0, 20, 20), it will do some other processing such as alerting the user, etc.
The coordinates would be loaded from a file either on my webserver or another...but thats the least of my concerns because that can be coded easily.
I really do not know in which forum to post...because this can be cross listed into the AJAX, PHP, etc boards...
I just need a push into the right direction on how to get started.
If the question is vague, please let me know and I will clarify a bit more...Thanks.