J
J
John Doe2020-05-25 21:56:23
JavaScript
John Doe, 2020-05-25 21:56:23

How to crop and overlay two images on canvas?

Can you please tell me how to do this on canvas? Those. take a picture, crop it in a shape (for example, a circle) and draw another picture on top of it, also cropped to a certain shape?
5ecc13c00c282500450508.png
I tried the globalCompositeOperation property, but I can’t manage to overlay the second picture (it is superimposed on top of the first one and there’s no way to crop each picture separately).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2020-05-25
@nata_tomas

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question