+ 5
How to insert image in svg graphics? Like canvas...
4 odpowiedzi
+ 5
With <image> tag
+ 5
Sorry, if I hurts you
I am new on sololearn.
Be a good friend
+ 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'...) ^^
+ 4
Don't say thank you, don't upvote... at least here you've avoided to mark your answer as best :P