wittlock/ngx-image-zoom

Can't Apply zooming on Canvas Elements

Opened this issue · 4 comments

I am using canvas element to display background images and draw some stuffs which is possible on canvas only,and then i want to zoom that canvas images. But with this library it isn't possible. How it can be done? Can any 1 please explain it.

Currently this module creates its own <img tags to work with and so I don't think that would work with a canvas. So in its current state I'd say it's not possible. I'd be happy to see a pull request extending it with features that would support canvas. Otherwise I'll keep this around as a feature request, but it'd likely take me quite some time to get around to this as I have several other feature I'd like to get around to first.

I achieved this task by displaying ngx image on canvas image with relative path and then zooming the ngx-image and moving canvas image in background , i don't know if this will help you in module development, but if you need any help wittlock how i did it, let me know i will explain how i achieved it.

Still the enhancement in progress or its going to take long to complete zooming on canvas images?

@megh10256 Can you please help me how can we use ngx-image-zoom within canvas?