-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background image reseting every time when I try to zoom, draw and all #6
Comments
If you want to manipulate the pixels of the image, you can use the If you'd just like to draw over the top of an image, you could try absolutely positioning the canvas over an img element on your page (with the background of the canvas element set to transparent). Hope this helps! 😄 |
Hi thanks for you quick reply.. Thank you I have upload image successfully but when I try to erase drawn contents on the canvas IMAGE also erasing.. How can I resolve this? and writing smoothness is not there.. |
Like I said in my previous comment, you don't need to draw the image into the canvas if you're not trying to manipulate the image pixels (i.e., you want to draw on TOP of it). In that case, just position an image behind the canvas element with absolute positioning, and set the canvas I am not sure what you mean by writing smoothness. What are running letters? |
I believe the feature you're requesting is not possible with the current API. It sounds like you're require some sort of layering system, which does not exist. You could fake it by creating two separate canvas objects of the same size stacked on top of each other, then try to sync the bottom canvas by listening to zoom and pan events from the top canvas. I created a gist showing how to do this: https://gist.github.com/lakenen/61628faa0b88bae7c82fc6a190aa308a |
I am using your API, its really very nice, I drawing one image on canvas using drawImage method but when I try to draw and zoom image is disappearing, please help me.. I am new to this
above code im using first time to draw image on canvas
Please help me quickly..
The text was updated successfully, but these errors were encountered: