K
K
Kirill Gorelov2017-11-07 18:09:10
JavaScript
Kirill Gorelov, 2017-11-07 18:09:10

Canvas fabricjs image frame?

Hey guys, can you tell me how to make the image frame not disappear when I move it behind the background of another image? That is, there is an example - https://jsfiddle.net/gorelov/hLj6tmq8 gorelov/m8ac9nhn - but this example does not suit me, I need to modify the first example, tell me, please, who knows!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Gorelov, 2017-11-08
@Kirill-Gorelov

All decided by myself. The problem was this. In my example, the phone picture was superimposed through the setOverlayImage method. And he did not give me the opportunity to do what I need. I changed it to setBackgroundImage. And you're done, an example that helped me jsfiddle.net/gs1L69fj/9

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question