+ 2

How to add two images in canvas one upon another..?

I just want to add two images with same dimensions in canvas one image in background another image is on background image...pls..help me Thank you

12th Oct 2020, 3:04 PM
❤☆Nani☆❤
❤☆Nani☆❤ - avatar
8 odpowiedzi
+ 2
Gordon thank you soo much this is exactly I want .and you can set that canvas element width and height.(why because it shows default width and heights of canvas )..
12th Oct 2020, 5:04 PM
❤☆Nani☆❤
❤☆Nani☆❤ - avatar
+ 1
You can set background for any tag for example body as follows: body{ background-image: url("https://dl.dropbox.com ... /yourImage.jpg?"); background-size: 100vw 100vh; background-repeat: no-repeat; }
12th Oct 2020, 4:10 PM
JaScript
JaScript - avatar
0
JaScript Read my question well I don't want background image of canvas element I want to add two images both are in canvas . Adding one image and at the same place I want to add another one
12th Oct 2020, 4:23 PM
❤☆Nani☆❤
❤☆Nani☆❤ - avatar
0
By fine tuning sequence, size and position of the two images About x-axis and y-axis in canvas : https://code.sololearn.com/WVRn0qLBrCoX/?ref=app
12th Oct 2020, 4:29 PM
Gordon
Gordon - avatar
0
Gordon I didn't want this ...this is belongs to line
12th Oct 2020, 4:36 PM
❤☆Nani☆❤
❤☆Nani☆❤ - avatar
0
The linked code is for the graphical illustration of canvas coordinate system. Have you read the content of my answer?
12th Oct 2020, 4:41 PM
Gordon
Gordon - avatar
0
Gordon yes I read . How can i fix that background image (which is invisible to outside...)
12th Oct 2020, 4:45 PM
❤☆Nani☆❤
❤☆Nani☆❤ - avatar