+ 5

How to insert image in svg graphics? Like canvas...

8th Jul 2017, 11:55 AM
Ankur Dutta Jha
Ankur Dutta Jha - avatar
4 Answers
+ 5
With <image> tag
13th Jul 2017, 6:12 AM
Ankur Dutta Jha
Ankur Dutta Jha - avatar
+ 5
Sorry, if I hurts you I am new on sololearn. Be a good friend
13th Jul 2017, 7:54 AM
Ankur Dutta Jha
Ankur Dutta Jha - avatar
+ 4
<canvas> and <svg> elements are not truely related... Svg handle mainly vector graphics, while canvas handle mainly bitmaps ^^ So, what are you meaning by << insert image in svg graphics... like canvas >>? You can embed bitmaps in Svg thanks to its ability to have bitmaps background images: https://code.sololearn.com/WOrLOi09pA1s/?ref=app (this code use bitmap as texture -- background -- of svg text element: for displaying a full image, apply it to a svg rect element with related size) Anyway, you cannot embed canvas element directly inside svg one... or inverse... All that you can imagine, is to use one as a over layer on the other, using css 'position' property values related to positionned element ('fixed', 'absolute', 'relative'...) ^^
8th Jul 2017, 5:23 PM
visph
visph - avatar
+ 4
Don't say thank you, don't upvote... at least here you've avoided to mark your answer as best :P
13th Jul 2017, 7:31 AM
visph
visph - avatar